Skip to content

Commit 5f68094

Browse files
committed
py: mp_obj_new_int_from_float() supported only for MICROPY_PY_BUILTINS_FLOAT.
1 parent f79cd6a commit 5f68094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ mp_obj_t mp_obj_new_int_from_uint(mp_uint_t value);
399399
mp_obj_t mp_obj_new_int_from_str_len(const char **str, mp_uint_t len, bool neg, mp_uint_t base);
400400
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)
401401
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)
402-
mp_obj_t mp_obj_new_int_from_float(mp_float_t val);
403402
mp_obj_t mp_obj_new_str(const char* data, mp_uint_t len, bool make_qstr_if_not_already);
404403
mp_obj_t mp_obj_new_bytes(const byte* data, mp_uint_t len);
405404
mp_obj_t mp_obj_new_bytearray(mp_uint_t n, void *items);
406405
mp_obj_t mp_obj_new_bytearray_by_ref(mp_uint_t n, void *items);
407406
#if MICROPY_PY_BUILTINS_FLOAT
407+
mp_obj_t mp_obj_new_int_from_float(mp_float_t val);
408408
mp_obj_t mp_obj_new_float(mp_float_t val);
409409
mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag);
410410
#endif

0 commit comments

Comments
 (0)