aboutsummaryrefslogtreecommitdiffstats
path: root/bytecode/src/encoding.rs
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-08-07 19:42:35 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-08-07 19:42:35 -0700
commitb81426bb210ea5fca6d841e4dfeb38d83e1a6554 (patch)
treec8f0f5c164dbf7d54eeb05246f23de38258d2382 /bytecode/src/encoding.rs
parent1f0227d03d7b15759b74544d2b210edd20be7da0 (diff)
downloadchromatopelma-b81426bb210ea5fca6d841e4dfeb38d83e1a6554.tar.zst
Misc test fixup in the compiler.
Diffstat (limited to 'bytecode/src/encoding.rs')
-rw-r--r--bytecode/src/encoding.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/bytecode/src/encoding.rs b/bytecode/src/encoding.rs
index 6e86103..8fccc1a 100644
--- a/bytecode/src/encoding.rs
+++ b/bytecode/src/encoding.rs
@@ -108,6 +108,11 @@ fn op_decoding<T: Read>(prog: &mut T) -> Result<Option<Op>, String> {
read_arg(prog, arg1_const)?,
read_arg(prog, arg2_const)?,
),
+ 17 => Op::Equal(
+ read_local(prog)?,
+ read_arg(prog, arg1_const)?,
+ read_arg(prog, arg2_const)?,
+ ),
_ => {
return Err(String::from("invalid opcode"));
}