formatting
This commit is contained in:
@@ -852,7 +852,8 @@ result_t NumberDataType::writeSymbols(size_t offset, size_t length, istringstrea
|
||||
dvalue = round(dvalue * m_divisor);
|
||||
}
|
||||
if (hasFlag(SIG)) {
|
||||
if (dvalue < -exp2((8 * static_cast<double>(length)) - 1) || dvalue >= exp2((8 * static_cast<double>(length)) - 1)) {
|
||||
if (dvalue < -exp2((8 * static_cast<double>(length)) - 1)
|
||||
|| dvalue >= exp2((8 * static_cast<double>(length)) - 1)) {
|
||||
return RESULT_ERR_OUT_OF_RANGE; // value out of range
|
||||
}
|
||||
if (dvalue < 0 && m_bitCount != 32) {
|
||||
|
||||
Reference in New Issue
Block a user