Yet two more warnings
This commit is contained in:
parent
d7ad55f49e
commit
5ae85e67f6
@ -36,7 +36,7 @@ public:
|
||||
|
||||
double PreviousPositiveDouble() const {
|
||||
RAPIDJSON_ASSERT(!Sign());
|
||||
if (d == 0.0)
|
||||
if (IsZero())
|
||||
return 0.0;
|
||||
else
|
||||
return Double(u - 1).Value();
|
||||
|
@ -896,7 +896,7 @@ private:
|
||||
if (significandDigit < 17) {
|
||||
d = d * 10.0 + (s.TakePush() - '0');
|
||||
--expFrac;
|
||||
if (d != 0.0)
|
||||
if (d > 0.0)
|
||||
significandDigit++;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user