about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/bytecode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/mod.rs')
-rw-r--r--users/tazjin/rlox/src/bytecode/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/tazjin/rlox/src/bytecode/mod.rs b/users/tazjin/rlox/src/bytecode/mod.rs
index a58f610417fd..922b3bef4484 100644
--- a/users/tazjin/rlox/src/bytecode/mod.rs
+++ b/users/tazjin/rlox/src/bytecode/mod.rs
@@ -13,8 +13,8 @@ pub fn main() {
     let mut chunk: Chunk = Default::default();
 
     let constant = chunk.add_constant(1.2);
-    chunk.add_op(OpCode::OpConstant(constant));
-    chunk.add_op(OpCode::OpReturn);
+    chunk.add_op(OpCode::OpConstant(constant), 1);
+    chunk.add_op(OpCode::OpReturn, 1);
 
     chunk::disassemble(&chunk, "test chunk");
 }