Skip to content

Commit 4c77354

Browse files
authored
chore: remove duplicate instructions (#2029)
remove duplicate instructions (STOP, ADD) from instruction table
1 parent 773b909 commit 4c77354

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/interpreter/src/instructions.rs

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ pub const fn instruction_table<WIRE: InterpreterTypes, H: Host + ?Sized>(
3232
let mut table = [control::unknown as crate::table::Instruction<WIRE, H>; 256];
3333

3434
table[STOP as usize] = control::stop;
35-
table[ADD as usize] = arithmetic::add;
36-
table[STOP as usize] = control::stop;
37-
3835
table[ADD as usize] = arithmetic::add;
3936
table[MUL as usize] = arithmetic::mul;
4037
table[SUB as usize] = arithmetic::sub;

0 commit comments

Comments
 (0)