Use long in fromTOML

This commit is contained in:
Nicolas Mattia
2021-12-17 23:15:26 +01:00
parent 10a8b5d3ae
commit 5d06836b9f
+1 -1
View File
@@ -49,7 +49,7 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
mkBool(v, toml::get<bool>(t));
break;;
case toml::value_t::integer:
mkInt(v, toml::get<int>(t));
mkInt(v, toml::get<long>(t));
break;;
case toml::value_t::floating:
mkFloat(v, toml::get<double>(t));