Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
1fa6be52
Commit
1fa6be52
authored
Jan 08, 2016
by
Damien George
Browse files
py/obj: For OBJ_REPR_D, use uint32_t cast when extracting qstr value.
parent
7dbf74c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/obj.h
View file @
1fa6be52
...
...
@@ -172,7 +172,7 @@ static inline bool MP_OBJ_IS_SMALL_INT(mp_const_obj_t o)
static
inline
bool
MP_OBJ_IS_QSTR
(
mp_const_obj_t
o
)
{
return
((((
mp_int_t
)(
o
))
&
0xffff000000000000
)
==
0x0002000000000000
);
}
#define MP_OBJ_QSTR_VALUE(o) ((((
mp_
uint_t)(o)) >> 1) & 0xffffffff)
#define MP_OBJ_QSTR_VALUE(o) ((((uint
32
_t)(o)) >> 1) & 0xffffffff)
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 1) | 0x0002000000000001))
#if MICROPY_PY_BUILTINS_FLOAT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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