diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-21 11:46:27 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-21 11:46:27 +1100 |
commit | e4af71212550d950269f6991be187f41dcf64eee (patch) | |
tree | 7602453f297f001f6ed7d96073d73836af323f6f /py/objint.h | |
parent | 67f3edc10af1833218af680835f75a3e2d0473e7 (diff) | |
download | micropython-e4af71212550d950269f6991be187f41dcf64eee.tar.gz micropython-e4af71212550d950269f6991be187f41dcf64eee.zip |
py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl.
And also simplify it to remove the check for small int. This can be done
because this function is only ever called if the argument is not a small
int.
Diffstat (limited to 'py/objint.h')
-rw-r--r-- | py/objint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objint.h b/py/objint.h index 6e627f1bd7..f418c329e9 100644 --- a/py/objint.h +++ b/py/objint.h @@ -48,6 +48,7 @@ typedef enum { } mp_fp_as_int_class_t; mp_fp_as_int_class_t mp_classify_fp_as_int(mp_float_t val); +mp_float_t mp_obj_int_as_float_impl(mp_obj_t self_in); #endif // MICROPY_PY_BUILTINS_FLOAT size_t mp_int_format_size(size_t num_bits, int base, const char *prefix, char comma); |