1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00

Fixed issue #199

This commit is contained in:
Trevor Welsby
2016-01-30 12:41:12 +10:00
parent ff6f723195
commit 561accb068
3 changed files with 383 additions and 786 deletions

View File

@ -7478,7 +7478,7 @@ class basic_json
// Negative, parse with strtoll and attempt cast to
// number_integer_t
if (attempt_cast(std::strtoll(reinterpret_cast<typename string_t::const_pointer>(m_start), &endptr,
10), result.m_value.number_unsigned))
10), result.m_value.number_integer))
{
result.m_type = value_t::number_integer;
}