mirror of
https://github.com/nlohmann/json.git
synced 2026-02-28 14:26:26 +00:00
Merge pull request #936 from zerodefect/improvement/fix_kmin_compiler_warning
Removed compiler warning about unused variable 'kMinExp'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user