Skip to content

Commit 65ec332

Browse files
committed
py: Fix configuration of math module.
1 parent bcb6ca4 commit 65ec332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/builtintables.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ 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
174+
#if MICROPY_PY_MATH
175175
{ MP_OBJ_NEW_QSTR(MP_QSTR_math), (mp_obj_t)&mp_module_math },
176+
#endif
176177
#if MICROPY_PY_CMATH
177178
{ MP_OBJ_NEW_QSTR(MP_QSTR_cmath), (mp_obj_t)&mp_module_cmath },
178179
#endif
179-
#endif
180180
#if MICROPY_PY_SYS
181181
{ MP_OBJ_NEW_QSTR(MP_QSTR_sys), (mp_obj_t)&mp_module_sys },
182182
#endif

0 commit comments

Comments
 (0)