Skip to content

Commit b294a7e

Browse files
committed
py: Properly fix configuration of float and math module.
1 parent 3f52262 commit b294a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/builtintables.c

+2
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,14 @@ STATIC const mp_map_elem_t mp_builtin_module_table[] = {
171171
{ MP_OBJ_NEW_QSTR(MP_QSTR_struct), (mp_obj_t)&mp_module_struct },
172172
#endif
173173

174+
#if MICROPY_PY_BUILTINS_FLOAT
174175
#if MICROPY_PY_MATH
175176
{ MP_OBJ_NEW_QSTR(MP_QSTR_math), (mp_obj_t)&mp_module_math },
176177
#endif
177178
#if MICROPY_PY_CMATH
178179
{ MP_OBJ_NEW_QSTR(MP_QSTR_cmath), (mp_obj_t)&mp_module_cmath },
179180
#endif
181+
#endif
180182
#if MICROPY_PY_SYS
181183
{ MP_OBJ_NEW_QSTR(MP_QSTR_sys), (mp_obj_t)&mp_module_sys },
182184
#endif

0 commit comments

Comments
 (0)