Commit a8e60c1f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objfloat: Missing default: caused incorrect results for unimplemented ops.

parent a96d3d08
......@@ -119,7 +119,8 @@ mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs_in) {
case MP_BINARY_OP_LESS_EQUAL: return MP_BOOL(lhs_val <= rhs_val);
case MP_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val);
return NULL; // op not supported
return NULL; // op not supported
return mp_obj_new_float(lhs_val);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment