jpl: 1 Remove small optimization when parsing the input instruction. Any instructions following INP were being ignored. 1 files changed, 0 insertions(+), 5 deletions(-)
Btw, forgot to mention that I have created a public inbox mailing list and that should now house all patches to smaller projects like these ;)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.sr.ht/~tmpod/toasty-lc3-vm/patches/34361/mbox | git am -3
--- src/ir.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ir.rs b/src/ir.rs index 4ae3518..6c49f73 100644 --- a/src/ir.rs +++ b/src/ir.rs @@ -57,11 +57,6 @@ impl BrainfuckIR { } }; - // Tiny optimization I suppose - if let Some(BrainfuckInstruction::INP) = instructions.last() { - continue; - } - instructions.push(inst); } -- 2.37.1
tmpod <tom@tmpod.dev> 2 years ago Applied, thanks! To git@git.sr.ht:~tmpod/brainfucc .. master -> master
Applied, thanks! To git@git.sr.ht:~tmpod/brainfucc .. master -> master