diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-07 17:38:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-07-07 17:38:29 -0300 |
commit | dbbe0f7971dfe89368224010352d2c08d13ef44f (patch) | |
tree | 4aedc09477bda5f47ac6d5370e00c078810c468d /lvm.c | |
parent | 0ca522c254911aed6657134959d4f7017dd853e3 (diff) | |
download | lua-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |