mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed a bug I introduced a few minutes ago.
This commit is contained in:
parent
4e8bcd2526
commit
205070e463
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user