mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.
This commit is contained in:
@@ -551,6 +551,8 @@ mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
|
|||||||
return mp_const_false;
|
return mp_const_false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
assert(0);
|
||||||
|
return mp_const_false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MP_OBJ_IS_SMALL_INT(lhs)) {
|
if (MP_OBJ_IS_SMALL_INT(lhs)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user