py: Fix compiler warning when floats disabled.

pull/470/head
Damien George 2014-04-12 13:04:44 +01:00
rodzic 19b992a862
commit f7e4e1c2b4
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)));