Disable Lua string coercion to int
This commit is contained in:
parent
643ae5d1b8
commit
ca195431ff
@ -1451,8 +1451,10 @@ Maybe<LuaInt> LuaDetail::asInteger(LuaValue const& v) {
|
|||||||
return (LuaInt)f;
|
return (LuaInt)f;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
/*// Kae: This prevents 1-1 conversion between Lua and Star::Json.
|
||||||
if (v.is<LuaString>())
|
if (v.is<LuaString>())
|
||||||
return maybeLexicalCast<LuaInt>(v.get<LuaString>().ptr());
|
return maybeLexicalCast<LuaInt>(v.get<LuaString>().ptr());
|
||||||
|
//*/
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user