Commit 5ae85e67 authored by Milo Yip's avatar Milo Yip

Yet two more warnings

parent d7ad55f4
...@@ -36,7 +36,7 @@ public: ...@@ -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();
......
...@@ -896,7 +896,7 @@ private: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment