Merge pull request #936 from zerodefect/improvement/fix_kmin_compiler_warning

Removed compiler warning about unused variable 'kMinExp'
This commit is contained in:
Niels Lohmann 2018-01-27 16:51:52 +01:00 committed by GitHub
commit 7aace7c976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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