Yet two more warnings

This commit is contained in:
Milo Yip 2015-04-11 00:41:09 +08:00
parent d7ad55f49e
commit 5ae85e67f6
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public:
double PreviousPositiveDouble() const { double PreviousPositiveDouble() const {
RAPIDJSON_ASSERT(!Sign()); RAPIDJSON_ASSERT(!Sign());
if (d == 0.0) if (IsZero())
return 0.0; return 0.0;
else else
return Double(u - 1).Value(); return Double(u - 1).Value();

View File

@ -896,7 +896,7 @@ private:
if (significandDigit < 17) { if (significandDigit < 17) {
d = d * 10.0 + (s.TakePush() - '0'); d = d * 10.0 + (s.TakePush() - '0');
--expFrac; --expFrac;
if (d != 0.0) if (d > 0.0)
significandDigit++; significandDigit++;
} }
else else