~tmpod/toasty-lc3-vm

Remove small optimization when parsing the input instruction. Any instructions following INP were being ignored. v2 APPLIED

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 ;)
Export patchset (mbox)
How do I use this?

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
Learn more about email & git

[PATCH v2] Remove small optimization when parsing the input instruction. Any instructions following INP were being ignored. Export this patch

---
 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
Applied, thanks!

To git@git.sr.ht:~tmpod/brainfucc
   ..  master -> master