summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-12 13:04:44 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-12 13:04:44 +0100
commitf7e4e1c2b48789125d1c2b2cee05ae9c088baa77 (patch)
tree903c5c49cbc90cb44701084d340b7f2eb885710a /py
parent19b992a862d0665bf9b543c32ee76763a9834f48 (diff)
downloadmicropython-f7e4e1c2b48789125d1c2b2cee05ae9c088baa77.tar.gz
micropython-f7e4e1c2b48789125d1c2b2cee05ae9c088baa77.zip
py: Fix compiler warning when floats disabled.
Diffstat (limited to 'py')
-rw-r--r--py/runtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index b83cdb13bc..053367e3f7 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -448,7 +448,9 @@ generic_binary_op:
// TODO implement dispatch for reverse binary ops
// TODO specify in error message what the operator is
+#if MICROPY_ENABLE_FLOAT
unsupported_op:
+#endif
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError,
"unsupported operand types for binary operator: '%s', '%s'",
mp_obj_get_type_str(lhs), mp_obj_get_type_str(rhs)));