shithub: orca

Download patch

ref: 423bc4a50137096f373967f7bb6f0bddc27725cd
parent: ce553109c56968c11cca37710bd537d242957f9e
author: cancel <cancel@cancel.fm>
date: Fri Nov 30 06:21:39 EST 2018

Cleanup

--- a/sim.c
+++ b/sim.c
@@ -304,7 +304,9 @@
   if (!IS_AWAKE)
     return;
   Glyph* line = gbuffer + y * width;
-  Usz max_x = width < x + 255 ? width : x + 255;
+  Usz max_x = x + 255;
+  if (width < max_x)
+    max_x = width;
   for (Usz x0 = x + 1; x0 < max_x; ++x0) {
     Glyph g = line[x0];
     mbuffer_poke_flags_or(mbuffer, height, width, y, x0, Mark_flag_lock);