Commit 205070e4 authored by Davis King's avatar Davis King

Fixed a bug I introduced a few minutes ago.

parent 4e8bcd25
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment