aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-12 15:51:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-12 15:51:16 -0300
commitc931d86e98da320c71da70c16d44aa28e9755520 (patch)
tree2c73ee84120f8f7983d883b3f46546e0676f6ba6 /lstate.c
parentd9e0f64a5de699a620771af299ea22f522c72f19 (diff)
downloadlua-c931d86e98da320c71da70c16d44aa28e9755520.tar.gz
lua-c931d86e98da320c71da70c16d44aa28e9755520.tar.bz2
lua-c931d86e98da320c71da70c16d44aa28e9755520.zip
'luaD_seterrorobj' should not raise errors
This function can be called unprotected, so it should not raise any kind of errors. (It could raise a memory-allocation error when creating a message).
Diffstat (limited to '')
-rw-r--r--lstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 69ddef40..ed5ccaaa 100644
--- a/lstate.c
+++ b/lstate.c
@@ -132,7 +132,7 @@ void luaE_checkcstack (lua_State *L) {
132 if (getCcalls(L) == LUAI_MAXCCALLS) 132 if (getCcalls(L) == LUAI_MAXCCALLS)
133 luaG_runerror(L, "C stack overflow"); 133 luaG_runerror(L, "C stack overflow");
134 else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11)) 134 else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11))
135 luaD_throw(L, LUA_ERRERR); /* error while handling stack error */ 135 luaD_errerr(L); /* error while handling stack error */
136} 136}
137 137
138 138