From 8bb4931fec1d3661487e126ff541479948d50d2e Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 13 Jan 2016 15:24:41 +0000 Subject: [PATCH] py/emitglue: Use mp_obj_is_float instead of MP_OBJ_IS_TYPE. --- py/emitglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/emitglue.c b/py/emitglue.c index d85672d16b..949a66ba9f 100644 --- a/py/emitglue.c +++ b/py/emitglue.c @@ -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));