diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-30 00:34:54 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-30 00:34:54 +0200 |
commit | 5f68094e10978cdc544b9904a516867e496325c5 (patch) | |
tree | 9cecd85fdd37bed7ef0a1cb95ca203fe5781f3d1 | |
parent | f79cd6a2330bce1d7bf886a440d80441cdbf9209 (diff) | |
download | micropython-5f68094e10978cdc544b9904a516867e496325c5.tar.gz micropython-5f68094e10978cdc544b9904a516867e496325c5.zip |
py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT.
-rw-r--r-- | py/obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -399,12 +399,12 @@ mp_obj_t mp_obj_new_int_from_uint(mp_uint_t value); mp_obj_t mp_obj_new_int_from_str_len(const char **str, mp_uint_t len, bool neg, mp_uint_t base); mp_obj_t mp_obj_new_int_from_ll(long long val); // this must return a multi-precision integer object (or raise an overflow exception) mp_obj_t mp_obj_new_int_from_ull(unsigned long long val); // this must return a multi-precision integer object (or raise an overflow exception) -mp_obj_t mp_obj_new_int_from_float(mp_float_t val); mp_obj_t mp_obj_new_str(const char* data, mp_uint_t len, bool make_qstr_if_not_already); mp_obj_t mp_obj_new_bytes(const byte* data, mp_uint_t len); mp_obj_t mp_obj_new_bytearray(mp_uint_t n, void *items); mp_obj_t mp_obj_new_bytearray_by_ref(mp_uint_t n, void *items); #if MICROPY_PY_BUILTINS_FLOAT +mp_obj_t mp_obj_new_int_from_float(mp_float_t val); mp_obj_t mp_obj_new_float(mp_float_t val); mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag); #endif |