py/emitnative.c: Fix stack adjustment when erroring on binary op.
This commit is contained in:
parent
eaefc8b9d6
commit
8f6aad2f48
|
@ -2077,10 +2077,10 @@ STATIC void emit_native_binary_op(emit_t *emit, mp_binary_op_t op) {
|
|||
}
|
||||
emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET);
|
||||
} else {
|
||||
adjust_stack(emit, -1);
|
||||
EMIT_NATIVE_VIPER_TYPE_ERROR(emit,
|
||||
"can't do binary op between '%q' and '%q'",
|
||||
vtype_to_qstr(vtype_lhs), vtype_to_qstr(vtype_rhs));
|
||||
emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue