Fixed a bug I introduced a few minutes ago.

This commit is contained in:
Davis King 2013-03-01 03:00:05 -05:00
parent 4e8bcd2526
commit 205070e463

View File

@ -131,7 +131,7 @@ namespace dlib
else if (val < std::numeric_limits<T>::infinity())
{
int exp;
mantissa = (int64)_frexp(val, &exp)*(((uint64)1)<<digits);
mantissa = static_cast<int64>(_frexp(val, &exp)*(((uint64)1)<<digits));
exponent = exp - digits;
// Compact the representation a bit by shifting off any low order bytes