aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-20 09:43:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-20 09:43:46 -0300
commit45a8f1b59310f9db74d9fc17264be2c2b2a06217 (patch)
treedd017df9469f8c4d298f3457bd0be61c21f7a850 /lapi.c
parent8fac494509523dba479640a3e9b60c6f929b0788 (diff)
downloadlua-45a8f1b59310f9db74d9fc17264be2c2b2a06217.tar.gz
lua-45a8f1b59310f9db74d9fc17264be2c2b2a06217.tar.bz2
lua-45a8f1b59310f9db74d9fc17264be2c2b2a06217.zip
Removed 'if' left from commit ddfa1fbccfe
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 40db1214..7980ead0 100644
--- a/lapi.c
+++ b/lapi.c
@@ -545,7 +545,6 @@ LUA_API const char *lua_pushextlstring (lua_State *L,
545 ts = luaS_newextlstr (L, s, len, falloc, ud); 545 ts = luaS_newextlstr (L, s, len, falloc, ud);
546 setsvalue2s(L, L->top.p, ts); 546 setsvalue2s(L, L->top.p, ts);
547 api_incr_top(L); 547 api_incr_top(L);
548 if (falloc != NULL) /* non-static string? */
549 luaC_checkGC(L); 548 luaC_checkGC(L);
550 lua_unlock(L); 549 lua_unlock(L);
551 return getstr(ts); 550 return getstr(ts);