shithub: orca

Download patch

ref: d92d12e0457965c36542769d2195d5d29b981207
parent: e4627a7fd73156147bf9e7e6cd58f58b135d8407
author: cancel <cancel@cancel.fm>
date: Sat Dec 29 18:09:11 EST 2018

Cleanup

--- a/sim.c
+++ b/sim.c
@@ -517,7 +517,7 @@
 BEGIN_OPERATOR(loop)
   LOWERCASE_REQUIRES_BANG;
   PORT(0, -1, IN | PARAM);
-  Usz len = index_of(PEEK(0, -1)) + 1;
+  Usz len = safe_index_of(PEEK(0, -1)) + 1;
   if (len > width - x - 1)
     len = width - x - 1;
   Mark* m = mbuffer + y * width + x + 1;
@@ -526,7 +526,7 @@
   }
   if (len == 0)
     return;
-  Glyph buff[36];
+  Glyph buff[Glyphs_index_count];
   Glyph* gs = gbuffer + y * width + x + 1;
   Glyph hopped = *gs;
   for (Usz i = 0; i < len; ++i) {