Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
8bb4931f
Commit
8bb4931f
authored
Jan 13, 2016
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/emitglue: Use mp_obj_is_float instead of MP_OBJ_IS_TYPE.
parent
efc971e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
py/emitglue.c
py/emitglue.c
+1
-1
No files found.
py/emitglue.c
View file @
8bb4931f
...
...
@@ -543,7 +543,7 @@ STATIC void save_obj(mp_print_t *print, mp_obj_t o) {
byte
obj_type
;
if
(
MP_OBJ_IS_TYPE
(
o
,
&
mp_type_int
))
{
obj_type
=
'i'
;
}
else
if
(
MP_OBJ_IS_TYPE
(
o
,
&
mp_type_float
))
{
}
else
if
(
mp_obj_is_float
(
o
))
{
obj_type
=
'f'
;
}
else
{
assert
(
MP_OBJ_IS_TYPE
(
o
,
&
mp_type_complex
));
...
...
Write
Preview
Markdown
is supported
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