Skip to content

Commit 4b2b7ce

Browse files
committed
runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.
1 parent 1673420 commit 4b2b7ce

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
@@ -551,6 +551,8 @@ mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
551551
return mp_const_false;
552552
}
553553
}
554+
assert(0);
555+
return mp_const_false;
554556
}
555557

556558
if (MP_OBJ_IS_SMALL_INT(lhs)) {

0 commit comments

Comments
 (0)