diff options
Diffstat (limited to 'py/objfloat.c')
-rw-r--r-- | py/objfloat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index 9caeaf7686..ed6260681c 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -101,10 +101,10 @@ mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs_in) { case RT_BINARY_OP_TRUE_DIVIDE: case RT_BINARY_OP_INPLACE_TRUE_DIVIDE: lhs_val /= rhs_val; break; - case RT_COMPARE_OP_LESS: return MP_BOOL(lhs_val < rhs_val); - case RT_COMPARE_OP_MORE: return MP_BOOL(lhs_val > rhs_val); - case RT_COMPARE_OP_LESS_EQUAL: return MP_BOOL(lhs_val <= rhs_val); - case RT_COMPARE_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); + case RT_BINARY_OP_LESS: return MP_BOOL(lhs_val < rhs_val); + case RT_BINARY_OP_MORE: return MP_BOOL(lhs_val > rhs_val); + case RT_BINARY_OP_LESS_EQUAL: return MP_BOOL(lhs_val <= rhs_val); + case RT_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); return NULL; // op not supported } |