summaryrefslogtreecommitdiff
path: root/py/builtintables.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 01:48:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 18:00:23 +0300
commit3b6f7b95eb487fc927a3bc4644b1941cfbe2612b (patch)
treee06661e63e4c8bd6f94494281237bc31f4d488eb /py/builtintables.c
parent7efbd325bb5ac540b746a594a76185c211963c46 (diff)
py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.
One thing is wanting to do 1 / 2 and get something else but 0, and quite another - doing rocket science ;-).
Diffstat (limited to 'py/builtintables.c')
-rw-r--r--py/builtintables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtintables.c b/py/builtintables.c
index af9a9bc25..66ea4ea44 100644
--- a/py/builtintables.c
+++ b/py/builtintables.c
@@ -44,7 +44,7 @@ STATIC const mp_map_elem_t mp_builtin_object_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_bool), (mp_obj_t)&mp_type_bool },
{ MP_OBJ_NEW_QSTR(MP_QSTR_bytes), (mp_obj_t)&mp_type_bytes },
{ MP_OBJ_NEW_QSTR(MP_QSTR_bytearray), (mp_obj_t)&mp_type_bytearray },
-#if MICROPY_PY_BUILTINS_FLOAT
+#if MICROPY_PY_BUILTINS_COMPLEX
{ MP_OBJ_NEW_QSTR(MP_QSTR_complex), (mp_obj_t)&mp_type_complex },
#endif
{ MP_OBJ_NEW_QSTR(MP_QSTR_dict), (mp_obj_t)&mp_type_dict },