py/emitnative.c: Fix stack adjustment when erroring on binary op.

This commit is contained in:
Damien George 2015-04-22 23:16:03 +01:00
parent eaefc8b9d6
commit 8f6aad2f48
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}