diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-08-07 19:42:35 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-08-07 19:42:35 -0700 |
| commit | b81426bb210ea5fca6d841e4dfeb38d83e1a6554 (patch) | |
| tree | c8f0f5c164dbf7d54eeb05246f23de38258d2382 /bytecode/src | |
| parent | 1f0227d03d7b15759b74544d2b210edd20be7da0 (diff) | |
| download | chromatopelma-b81426bb210ea5fca6d841e4dfeb38d83e1a6554.tar.zst | |
Misc test fixup in the compiler.
Diffstat (limited to 'bytecode/src')
| -rw-r--r-- | bytecode/src/encoding.rs | 5 |
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")); } |
