From c22ee3f296c6491785be881afb7363d7d3398583 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 21 Jan 2015 18:04:12 +0100 Subject: [PATCH] fixed an issue with non portability --- README.md | 1 + test/json_unit.cc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cbc1d79..2f4e9407 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,7 @@ I deeply appreciate the help of the following people. - [elliotgoodrich](https://github.com/elliotgoodrich) fixed an issue with double deletion in the iterator classes. - [kirkshoop](https://github.com/kirkshoop) made the iterators of the class composable to other libraries. - [wancw](https://github.com/wanwc) fixed a bug that hindered the class to compile with Clang. +- Tomas Ă…blad found a bug in the iterator implementation. Thanks a lot for helping out! diff --git a/test/json_unit.cc b/test/json_unit.cc index 7862642d..29ce9af4 100644 --- a/test/json_unit.cc +++ b/test/json_unit.cc @@ -2065,8 +2065,8 @@ TEST_CASE("Parser") CHECK(json::parse("10000.0E-4") == json(1)); // 64 bit integers - CHECK(json::parse("9223372036854775807") == json(9223372036854775807)); - CHECK(json::parse("-9223372036854775807") == json(-9223372036854775807)); + CHECK(json::parse("9000000000000000000") == json(9000000000000000000)); + CHECK(json::parse("-9000000000000000000") == json(-9000000000000000000)); // trailing zero is not allowed //CHECK_THROWS_AS(json::parse("01"), std::invalid_argument);