Fixed a wrong conversion in ByteVector::toFloat64BE().

This commit is contained in:
Tsuda Kageyu 2014-04-09 14:45:01 +09:00
parent c94d482215
commit 65beb8cc06

View File

@ -785,7 +785,7 @@ double ByteVector::toFloat64BE(size_t offset) const
return 0.0;
}
else
val = ::ldexp(1.0 + static_cast<double>(fraction), exponent - 1023 - 52);
val = ::ldexp(static_cast<double>(fraction), exponent - 1023 - 52);
}
if(negative)