summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-12-21 07:39:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-12-21 07:39:25 -0300
commit86ec152433baf8daf39f03a59c6842cbe33a179d (patch)
tree20cf7e874309a73e12bf7643267e962972012614
parentcf613cdc6fa367257fc61c256f63d917350858b5 (diff)
downloadlua-github-86ec152433baf8daf39f03a59c6842cbe33a179d.tar.gz
Details
correction in macro for hard tests + type in comment
-rw-r--r--lapi.c2
-rw-r--r--llimits.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 3585ac43..5ee65792 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1143,7 +1143,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) {
va_start(argp, what);
switch (what) {
case LUA_GCSTOP: {
- g->gcstp = GCSTPUSR; /* stopeed by the user */
+ g->gcstp = GCSTPUSR; /* stopped by the user */
break;
}
case LUA_GCRESTART: {
diff --git a/llimits.h b/llimits.h
index 6c56ba5a..52a32f92 100644
--- a/llimits.h
+++ b/llimits.h
@@ -361,7 +361,7 @@ typedef l_uint32 Instruction;
#define condchangemem(L,pre,pos) ((void)0)
#else
#define condchangemem(L,pre,pos) \
- { if (G(L)->gcrunning) { pre; luaC_fullgc(L, 0); pos; } }
+ { if (gcrunning(G(L))) { pre; luaC_fullgc(L, 0); pos; } }
#endif
#endif