This commit is contained in:
arcoRocks 2018-02-20 16:23:45 +01:00 committed by GitHub
parent 3e1916a8d5
commit e23c2bb04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ namespace chaiscript
{ {
return json::JSON(bn.get_as<double>()); return json::JSON(bn.get_as<double>());
} else { } else {
return json::JSON(bn.get_as<long long>()); return json::JSON(bn.get_as<std::int64_t>());
} }
} catch (const chaiscript::detail::exception::bad_any_cast &) { } catch (const chaiscript::detail::exception::bad_any_cast &) {
// not a number // not a number