summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-13 16:26:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-13 16:26:02 -0300
commitb202669d761660f7d8131bef507e5c48df1ffba7 (patch)
treeab487409494e505b660445d71928085a2cd1b3ce
parent1442fd57836851df5b4d67c30d3be77021768a52 (diff)
downloadlua-github-b202669d761660f7d8131bef507e5c48df1ffba7.tar.gz
Bug fix: GC after resizing stack can shrink it again
Macro 'checkstackGC' was doing a GC step after resizing the stack; the GC could shrink the stack and undo the resize.
-rw-r--r--ldo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldo.h b/ldo.h
index 7760f853..821cb779 100644
--- a/ldo.h
+++ b/ldo.h
@@ -44,7 +44,7 @@
/* macro to check stack size and GC */
#define checkstackGC(L,fsize) \
- luaD_checkstackaux(L, (fsize), (void)0, luaC_checkGC(L))
+ luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)
/* type of protected functions, to be ran by 'runprotected' */