diff options
| author | Damien George | 2014-04-12 13:04:44 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-12 13:04:44 +0100 |
| commit | f7e4e1c2b48789125d1c2b2cee05ae9c088baa77 (patch) | |
| tree | 903c5c49cbc90cb44701084d340b7f2eb885710a | |
| parent | 19b992a862d0665bf9b543c32ee76763a9834f48 (diff) | |
py: Fix compiler warning when floats disabled.
| -rw-r--r-- | py/runtime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index b83cdb13b..053367e3f 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))); |
