mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-13 17:55:21 +03:00
chore(ui): prefer lua_tostring macro
This commit is contained in:
13 files changed
+37
-37
No files matched your search
@@ -99,7 +99,7 @@ bool StringToBOOL(lua_State* L, int32_t idx, int32_t def) {
|
||||
break;
|
||||
|
||||
case LUA_TSTRING:
|
||||
str = lua_tolstring(L, idx, 0);
|
||||
str = lua_tostring(L, idx);
|
||||
result = StringToBOOL(str, def);
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user