This commit is contained in:
arcoRocks 2018-02-19 13:31:38 +01:00 committed by GitHub
parent 0391a9c715
commit 3e1916a8d5
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>()); return json::JSON(bn.get_as<long long>());
} }
} catch (const chaiscript::detail::exception::bad_any_cast &) { } catch (const chaiscript::detail::exception::bad_any_cast &) {
// not a number // not a number