summaryrefslogtreecommitdiff
path: root/libs/liblua/src/ltm.c
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2021-04-03 15:33:54 +0300
committerdartraiden <wowemuh@gmail.com>2021-04-03 15:33:54 +0300
commit875bc74fa5fe083ba0b5c5a785c53ec0f49b9a1b (patch)
tree8c025467c2f85d9a9b7bb2fdd644cee4a9996d7f /libs/liblua/src/ltm.c
parenta0970c309b5c9cb655f58ef3c5154296e975580e (diff)
liblua: update to 5.4.3
Diffstat (limited to 'libs/liblua/src/ltm.c')
-rw-r--r--libs/liblua/src/ltm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/liblua/src/ltm.c b/libs/liblua/src/ltm.c
index 4770f96bb6..b657b783a8 100644
--- a/libs/liblua/src/ltm.c
+++ b/libs/liblua/src/ltm.c
@@ -147,7 +147,7 @@ static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
StkId res, TMS event) {
- if (!callbinTM(L, p1, p2, res, event)) {
+ if (l_unlikely(!callbinTM(L, p1, p2, res, event))) {
switch (event) {
case TM_BAND: case TM_BOR: case TM_BXOR:
case TM_SHL: case TM_SHR: case TM_BNOT: {
@@ -166,7 +166,8 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
void luaT_tryconcatTM (lua_State *L) {
StkId top = L->top;
- if (!callbinTM(L, s2v(top - 2), s2v(top - 1), top - 2, TM_CONCAT))
+ if (l_unlikely(!callbinTM(L, s2v(top - 2), s2v(top - 1), top - 2,
+ TM_CONCAT)))
luaG_concaterror(L, s2v(top - 2), s2v(top - 1));
}