mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
give variable more descriptive name
This commit is contained in:
parent
edab113b1f
commit
eaea78262a
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ LUALIB_API bool luaL_checkboolean(lua_State* L, int narg)
|
||||||
// all other truthy/falsy values. If the desired result
|
// all other truthy/falsy values. If the desired result
|
||||||
// is true if value is present then lua_toboolean should
|
// is true if value is present then lua_toboolean should
|
||||||
// directly be used instead.
|
// directly be used instead.
|
||||||
const auto val = lua_isboolean(L, narg);
|
const auto isbool = lua_isboolean(L, narg);
|
||||||
if (!val)
|
if (!isbool)
|
||||||
tag_error(L, narg, LUA_TBOOLEAN);
|
tag_error(L, narg, LUA_TBOOLEAN);
|
||||||
return lua_toboolean(L, narg);
|
return lua_toboolean(L, narg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue