diff --git a/README.md b/README.md index eeed96a7..ebf2b52f 100644 --- a/README.md +++ b/README.md @@ -934,6 +934,7 @@ I deeply appreciate the help of the following people. - [Eren Okka](https://github.com/erengy) fixed some MSVC warnings. - [abolz](https://github.com/abolz) integrated the Grisu2 algorithm for proper floating-point formatting, allowing more roundtrip checks to succeed. - [Vadim Evard](https://github.com/Pipeliner) fixed a Markdown issue in the README. +- [zerodefect](https://github.com/zerodefect) fixed a compiler warning. Thanks a lot for helping out! Please [let me know](mailto:mail@nlohmann.me) if I forgot someone. diff --git a/doc/avatars.png b/doc/avatars.png index b24204bd..1ef57875 100644 Binary files a/doc/avatars.png and b/doc/avatars.png differ diff --git a/src/json.hpp b/src/json.hpp index 4c02b076..f7e3ab17 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -7294,7 +7294,7 @@ boundaries compute_boundaries(FloatType value) const bool is_denormal = (E == 0); const diyfp v = is_denormal - ? diyfp(F, 1 - kBias) + ? diyfp(F, kMinExp) : diyfp(F + kHiddenBit, static_cast(E) - kBias); // Compute the boundaries m- and m+ of the floating-point value