Skip to content

Commit 6b4b6d3

Browse files
committed
py/obj.h: Fix math.e constant for nan-boxing builds.
Due to a typo, math.e was too small by around 6e-11.
1 parent 68f4cba commit 6b4b6d3

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
@@ -179,7 +179,7 @@ static inline bool MP_OBJ_IS_QSTR(mp_const_obj_t o)
179179
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 1) | 0x0002000000000001))
180180

181181
#if MICROPY_PY_BUILTINS_FLOAT
182-
#define mp_const_float_e {((mp_obj_t)((uint64_t)0x4005bf0a8b125769 + 0x8004000000000000))}
182+
#define mp_const_float_e {((mp_obj_t)((uint64_t)0x4005bf0a8b145769 + 0x8004000000000000))}
183183
#define mp_const_float_pi {((mp_obj_t)((uint64_t)0x400921fb54442d18 + 0x8004000000000000))}
184184

185185
static inline bool mp_obj_is_float(mp_const_obj_t o) {

0 commit comments

Comments
 (0)