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

Yet two more warnings

parent d7ad55f4
......@@ -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
......
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