shithub: orca

Download patch

ref: 105371b868f6acd36da4a86e1a8dfd1fc2c9bf25
parent: 3a92c8e3b3b75598ed762aee4aa34e689f1471a5
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun May 10 07:10:55 EDT 2020

sim: K (konkat): index 0 is a valid variable index

--- a/sim.c
+++ b/sim.c
@@ -516,11 +516,9 @@
     Glyph var = PEEK(0, i + 1);
     if (var != '.') {
       Usz var_idx = index_of(var);
-      if (var_idx != 0) {
-        Glyph result = extra_params->vars_slots[var_idx];
-        PORT(1, i + 1, OUT);
-        POKE(1, i + 1, result);
-      }
+      Glyph result = extra_params->vars_slots[var_idx];
+      PORT(1, i + 1, OUT);
+      POKE(1, i + 1, result);
     }
   }
 END_OPERATOR