about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/tazjin/rlox/src/bytecode/vm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/bytecode/vm.rs b/users/tazjin/rlox/src/bytecode/vm.rs
index 33bc358f44e8..4ed0d25cf794 100644
--- a/users/tazjin/rlox/src/bytecode/vm.rs
+++ b/users/tazjin/rlox/src/bytecode/vm.rs
@@ -25,8 +25,8 @@ impl VM {
 
 macro_rules! binary_op {
     ( $vm:ident, $op:tt ) => {{
-        let a = $vm.pop();
         let b = $vm.pop();
+        let a = $vm.pop();
         $vm.push(a $op b);
     }}
 }