diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-01 10:56:07 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-01 10:56:07 +0100 |
commit | e09320adb5c2ae849ca8fdf3b4d71e4d32965be7 (patch) | |
tree | a6c24a8c9d36498f5880d83220163ce2c0a0caec | |
parent | 46330bd9b52bdd8865be62c1f6c534ef7709b842 (diff) | |
download | micropython-e09320adb5c2ae849ca8fdf3b4d71e4d32965be7.tar.gz micropython-e09320adb5c2ae849ca8fdf3b4d71e4d32965be7.zip |
py: Remove implicit conversion from int to float.
-rw-r--r-- | py/obj.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -198,10 +198,6 @@ machine_int_t mp_obj_get_int(mp_obj_t arg) { return MP_OBJ_SMALL_INT_VALUE(arg); } else if (MP_OBJ_IS_TYPE(arg, &mp_type_int)) { return mp_obj_int_get_checked(arg); -#if MICROPY_ENABLE_FLOAT - } else if (MP_OBJ_IS_TYPE(arg, &mp_type_float)) { - return mp_obj_float_get(arg); -#endif } else { nlr_jump(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "can't convert %s to int", mp_obj_get_type_str(arg))); } |