From dda57dad6c55425d8cc7a38138597646f4adc265 Mon Sep 17 00:00:00 2001 From: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> Date: Mon, 29 Apr 2024 05:02:16 -0700 Subject: [PATCH] Explicit numerical comparison --- VM/src/ltablib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VM/src/ltablib.cpp b/VM/src/ltablib.cpp index e6f32221..a57d6cf7 100644 --- a/VM/src/ltablib.cpp +++ b/VM/src/ltablib.cpp @@ -314,7 +314,7 @@ static int tconcat(lua_State* L) for (; i < last; i++) { addfield(L, &b, i, t); - if (!DFFlag::LuauFasterConcat || lsep) + if (!DFFlag::LuauFasterConcat || lsep != 0) luaL_addlstring(&b, sep, lsep); } if (i == last) // add last value (if interval was not empty)