Skip to content

Commit f7e4e1c

Browse files
committed
py: Fix compiler warning when floats disabled.
1 parent 19b992a commit f7e4e1c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

py/runtime.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,9 @@ mp_obj_t mp_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
448448
// TODO implement dispatch for reverse binary ops
449449

450450
// TODO specify in error message what the operator is
451+
#if MICROPY_ENABLE_FLOAT
451452
unsupported_op:
453+
#endif
452454
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError,
453455
"unsupported operand types for binary operator: '%s', '%s'",
454456
mp_obj_get_type_str(lhs), mp_obj_get_type_str(rhs)));

0 commit comments

Comments
 (0)