shithub: orca

Download patch

ref: a65f867da2d5606edfe9cdc721f651d11627c4ba
parent: 9af9bb537dcbe9d9fcdc1054c8a96ff162e16304
author: cancel <cancel@cancel.fm>
date: Fri Dec 7 09:48:23 EST 2018

Fix build warning

--- a/sim.c
+++ b/sim.c
@@ -833,8 +833,8 @@
     I32 ival[1];
     ival[0] = (I32)read_val_x;
     STORE(ival);
-    for (Isz i = 0; i < len; ++i) {
-      LOCK(0, i + 1);
+    for (Usz i = 0; i < len; ++i) {
+      LOCK(0, (Isz)(i + 1));
     }
   }
   BEGIN_DUAL_PORTS