diff options
author | Vincent Ambo <mail@tazj.in> | 2021-02-27T21·08+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-02-28T11·14+0000 |
commit | 0c9a7de5be0ac54f068a5f4db7eb400b3bd63282 (patch) | |
tree | 840f96c0175e7bcec8d86dc585be52e28c4e0a8c /users/tazjin/rlox/src/bytecode | |
parent | ace8c656befb37ddb558836d4787a775331c78f3 (diff) |
fix(tazjin/rlox): Fix identifier order in binary_op macro r/2246
Change-Id: I92253e875436bcb42732a157979a9d1e7ca0cd06 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2565 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/bytecode')
-rw-r--r-- | users/tazjin/rlox/src/bytecode/vm.rs | 2 |
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); }} } |