From eaea78262aa99e50d11400c2a860d6bc3fad4d05 Mon Sep 17 00:00:00 2001 From: Pelanyo Kamara Date: Sun, 21 Nov 2021 21:46:27 +0000 Subject: [PATCH] give variable more descriptive name --- VM/src/laux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VM/src/laux.cpp b/VM/src/laux.cpp index c9b09649..a6d5825f 100644 --- a/VM/src/laux.cpp +++ b/VM/src/laux.cpp @@ -189,8 +189,8 @@ LUALIB_API bool luaL_checkboolean(lua_State* L, int narg) // all other truthy/falsy values. If the desired result // is true if value is present then lua_toboolean should // directly be used instead. - const auto val = lua_isboolean(L, narg); - if (!val) + const auto isbool = lua_isboolean(L, narg); + if (!isbool) tag_error(L, narg, LUA_TBOOLEAN); return lua_toboolean(L, narg); }