diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-03 11:00:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-03 11:00:54 +0000 |
commit | 8270e3853dc167d2d7946bb0de7a0f0bb2adde48 (patch) | |
tree | e261ee333b53fbe4560c94e37a531eaae2c0d60e /py/obj.h | |
parent | a58a7aefbd330261cc5c79c9fc9d5c6a12d2aeeb (diff) |
py: More robust int conversion and overflow checking.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -359,6 +359,7 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2); bool mp_obj_less(mp_obj_t o1, mp_obj_t o2); machine_int_t mp_obj_get_int(mp_obj_t arg); +bool mp_obj_get_int_maybe(mp_obj_t arg, machine_int_t *value); #if MICROPY_ENABLE_FLOAT mp_float_t mp_obj_get_float(mp_obj_t self_in); void mp_obj_get_complex(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); |