Closed jefffisher closed 7 years ago
Fixed in 1.9.5.c. On overflow of conversion from 32 bit floats to smaller types the significand was not being set to the largest possible value. However the exponent was set correctly so the returned result would have still been within a factor of 2 of the largest possible value.
These errors show up when running the prebuilt sources through cppcheck, and they look valid to me, although I'm not 100% positive I'm following the code.
If I understand this correctly, though, I believe that block of code should be changed as follows: