summaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-07 17:38:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-07 17:38:29 -0300
commitdbbe0f7971dfe89368224010352d2c08d13ef44f (patch)
tree4aedc09477bda5f47ac6d5370e00c078810c468d /lvm.c
parent0ca522c254911aed6657134959d4f7017dd853e3 (diff)
downloadlua-github-temporary.tar.gz
Fixed bug in 'checkstackp'temporary
The macro 'checkstackp' can run a GC step and destroy a preallocated CallInfo. It has been renamed to 'checkstackGCp' to hint of this collateral effect.
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index ccbfbab5..d78d6be2 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1634,7 +1634,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
while (!ttisfunction(s2v(ra))) { /* not a function? */
luaD_tryfuncTM(L, ra); /* try '__call' metamethod */
b++; /* there is now one extra argument */
- checkstackp(L, 1, ra);
+ checkstackGCp(L, 1, ra);
}
if (!ttisLclosure(s2v(ra))) { /* C function? */
luaD_call(L, ra, LUA_MULTRET); /* call it */