Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8f6aad2f
Commit
8f6aad2f
authored
Apr 22, 2015
by
Damien George
Browse files
py/emitnative.c: Fix stack adjustment when erroring on binary op.
parent
eaefc8b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/emitnative.c
View file @
8f6aad2f
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment