Disable Lua string coercion to int

This commit is contained in:
Kae 2023-06-21 23:50:11 +10:00
parent 643ae5d1b8
commit ca195431ff

View File

@ -1451,8 +1451,10 @@ Maybe<LuaInt> LuaDetail::asInteger(LuaValue const& v) {
return (LuaInt)f;
return {};
}
/*// Kae: This prevents 1-1 conversion between Lua and Star::Json.
if (v.is<LuaString>())
return maybeLexicalCast<LuaInt>(v.get<LuaString>().ptr());
//*/
return {};
}