Skip to content

Commit f12d2f3

Browse files
committed
Use correct instruction
1 parent cf8cf21 commit f12d2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/jit/src/instructions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {
642642
self.stack.push(JitValue::Bool(not_boolean));
643643
Ok(())
644644
}
645-
Instruction::UnaryInvert => {
645+
Instruction::UnaryNegative => {
646646
match self.stack.pop().ok_or(JitCompileError::BadBytecode)? {
647647
JitValue::Int(val) => {
648648
// Compile minus as 0 - val.

0 commit comments

Comments
 (0)