[poincare] Number: fix ParseDigits to correctly parse "1."

This commit is contained in:
Émilie Feral
2018-09-25 16:21:49 +02:00
committed by LeaNumworks
parent 837bbaeec8
commit 32276680a8

View File

@@ -56,7 +56,7 @@ Number Number::ParseDigits(const char * digits, size_t length) {
}
// Integer
if (exponentLength == 0 && fractionalLength == 0) {
Integer i(digits, length, false);
Integer i(integral, integralLength, false);
if (!i.isInfinity()) {
return Rational(i);
}