Skip to content

Commit

Permalink
Merge pull request #936 from zerodefect/improvement/fix_kmin_compiler…
Browse files Browse the repository at this point in the history
…_warning

Removed compiler warning about unused variable 'kMinExp'
  • Loading branch information
nlohmann authored Jan 27, 2018
2 parents 0e2211d + 95cf1fe commit 7aace7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion develop/detail/conversions/to_chars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,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<int>(E) - kBias);

// Compute the boundaries m- and m+ of the floating-point value
Expand Down

0 comments on commit 7aace7c

Please sign in to comment.