Yet two more warnings
This commit is contained in:
parent
d7ad55f49e
commit
5ae85e67f6
@ -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:
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user