py/emitglue: Use mp_obj_is_float instead of MP_OBJ_IS_TYPE.

This commit is contained in:
Damien George 2016-01-13 15:24:41 +00:00
parent efc971e8f9
commit 8bb4931fec
1 changed files with 1 additions and 1 deletions

View File

@ -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));