]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve overflow
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 20:07:25 +0000 (22:07 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 20:07:25 +0000 (22:07 +0200)
src/vm/vm.c

index 1df6c21db3ea972d3cb58ef220f2cafcc5b6d4f9..349f959c1a395f86974106983b6cbdaaa4c423d2 100644 (file)
@@ -643,7 +643,7 @@ regtomemother:
   memcpy(mem+VAL, reg, VAL2);
   DISPATCH()
 overflow:
-  if(overflow_(mem, shred)) {
+  if(overflow_(mem + VAL2, shred)) {
     shred->pc = PC;
     exception(shred, "StackOverflow");
     continue;