1
0
mirror of https://github.com/nlohmann/json synced 2024-11-26 13:50:07 +00:00
nlohmannjson/include/nlohmann/detail
Thomas Braun 6ce2f35ba8 Fix outputting extreme integer values in edge cases
For some gcc version (Ubuntu 5.5.0-12ubuntu1~16.04) the existing code
crashes when the minimum value of int64_t is outputted.

Resurrect the code from before 546e2cbf (🚨 fixed some warnings,
2019-03-13) but delegate the sign removal so that the compilers don't
complain about taking the negative value of an unsigned value.

In addition we also rewrite the expression so that we first increment
and then negate.

The definition of remove_sign(number_unsigned_t) is never called as
unsigned values are never negative.
2019-09-03 13:55:15 +02:00
..
conversions 🚚 rename Hedley macros 2019-07-01 22:37:30 +02:00
input 🚨 fix linter warning 2019-07-21 14:04:49 +02:00
iterators 🚑 fix compiler errors 2019-07-14 21:19:55 +02:00
meta make sure values are overwritten in from_json overloads 2019-04-01 17:47:42 +02:00
output Fix outputting extreme integer values in edge cases 2019-09-03 13:55:15 +02:00
exceptions.hpp 🚚 rename Hedley macros 2019-07-01 22:37:30 +02:00
json_pointer.hpp 🚑 fix compiler errors 2019-07-14 21:19:55 +02:00
json_ref.hpp 💚 fix CI and #1521 2019-03-17 15:20:22 +01:00
macro_scope.hpp ⚗️ add Hedley annotations 2019-06-30 22:14:02 +02:00
macro_unscope.hpp 🔨 add NLOHMANN_JSON prefix and undef macros 2019-07-01 22:24:39 +02:00
value_t.hpp 🚨 fixed warnings 2019-03-15 14:55:13 +01:00