Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a7329615
Commit
a7329615
authored
Sep 29, 2014
by
Damien George
Browse files
py: Fix types, uint -> mp_uint_t.
parent
0b610de0
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objfun.c
View file @
a7329615
...
...
@@ -472,7 +472,7 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
return
1
;
}
else
if
(
MP_OBJ_IS_STR
(
obj
))
{
// pointer to the string (it's probably constant though!)
uint
l
;
mp_
uint
_t
l
;
return
(
mp_uint_t
)
mp_obj_str_get_data
(
obj
,
&
l
);
}
else
{
mp_obj_type_t
*
type
=
mp_obj_get_type
(
obj
);
...
...
@@ -484,13 +484,13 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
#endif
}
else
if
(
type
==
&
mp_type_tuple
)
{
// pointer to start of tuple (could pass length, but then could use len(x) for that)
uint
len
;
mp_
uint
_t
len
;
mp_obj_t
*
items
;
mp_obj_tuple_get
(
obj
,
&
len
,
&
items
);
return
(
mp_uint_t
)
items
;
}
else
if
(
type
==
&
mp_type_list
)
{
// pointer to start of list (could pass length, but then could use len(x) for that)
uint
len
;
mp_
uint
_t
len
;
mp_obj_t
*
items
;
mp_obj_list_get
(
obj
,
&
len
,
&
items
);
return
(
mp_uint_t
)
items
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment