shithub: orca

Download patch

ref: 9af9bb537dcbe9d9fcdc1054c8a96ff162e16304
parent: 0cc690dc31532b21f647cfa811cad0f7913a2576
author: cancel <cancel@cancel.fm>
date: Fri Dec 7 09:45:49 EST 2018

Fix locking error in 'T'

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