shithub: sl

Download patch

ref: 7f13236898a6eb74ed04913cf919f81e65d8e7a3
parent: 73338519b62aa99ccf0940964c64404ca9001750
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 27 12:17:45 EDT 2023

maxstack: fix OP_SETCL

--- a/maxstack.inc
+++ b/maxstack.inc
@@ -41,9 +41,6 @@
             sp -= n;
             break;
 
-        case OP_SETCL:
-            SWAP_INT32(ip);
-            ip += 4; // fallthrough
         case OP_LOADVL: case OP_LOADGL: case OP_LOADAL:
             sp++; // fallthrough
         case OP_SETGL: case OP_SETAL: case OP_LARGC:
@@ -138,6 +135,7 @@
 
         case OP_LOADCL:
             sp++;
+        case OP_SETCL:
             SWAP_INT32(ip);
             ip += 4;
             SWAP_INT32(ip);