Skip to content

Commit 8bb4931

Browse files
committed
py/emitglue: Use mp_obj_is_float instead of MP_OBJ_IS_TYPE.
1 parent efc971e commit 8bb4931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/emitglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ STATIC void save_obj(mp_print_t *print, mp_obj_t o) {
543543
byte obj_type;
544544
if (MP_OBJ_IS_TYPE(o, &mp_type_int)) {
545545
obj_type = 'i';
546-
} else if (MP_OBJ_IS_TYPE(o, &mp_type_float)) {
546+
} else if (mp_obj_is_float(o)) {
547547
obj_type = 'f';
548548
} else {
549549
assert(MP_OBJ_IS_TYPE(o, &mp_type_complex));

0 commit comments

Comments
 (0)