Try fixing unit test in release configuration
This commit is contained in:
parent
746a996cb9
commit
58d8d9ab9b
@ -791,8 +791,8 @@ public:
|
|||||||
// Checks whether a number can be losslessly converted to a double.
|
// Checks whether a number can be losslessly converted to a double.
|
||||||
bool IsLosslessDouble() const {
|
bool IsLosslessDouble() const {
|
||||||
if (!IsNumber()) return false;
|
if (!IsNumber()) return false;
|
||||||
if (IsUint64()) return static_cast<uint64_t>(static_cast<double>(GetUint64())) == GetUint64();
|
if (IsUint64()) return static_cast<volatile uint64_t>(static_cast<volatile double>(GetUint64())) == GetUint64();
|
||||||
if (IsInt64()) return static_cast< int64_t>(static_cast<double>(GetInt64())) == GetInt64();
|
if (IsInt64()) return static_cast<volatile int64_t>(static_cast<volatile double>(GetInt64())) == GetInt64();
|
||||||
return true; // double, int, uint are always lossless
|
return true; // double, int, uint are always lossless
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user