fix: issue causing incorrect behaviour in math operations
This commit is contained in:
parent
db7df4da37
commit
d48a021f85
|
@ -12,7 +12,7 @@ macro_rules! define_binary_op {
|
|||
let $left = tree.pull_by_stack_code((stack_code & 0b100) >> 2);
|
||||
let $right = tree.pull_by_stack_code((stack_code & 0b010) >> 1);
|
||||
|
||||
let $right = if !use_literal { $left } else { literal };
|
||||
let $right = if !use_literal { $right } else { literal };
|
||||
|
||||
if is_signed {
|
||||
let $left = $left as i16;
|
||||
|
|
Loading…
Reference in New Issue