mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
error can shift more than 32 bits.
From upstream fix:
0d25506a2e
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//1239493002 .
This commit is contained in:
parent
3f99fc1744
commit
c3a9aa21d6
|
@ -286,7 +286,7 @@ static bool DiyFpStrtod(Vector<const char> buffer,
|
|||
const int kDenominator = 1 << kDenominatorLog;
|
||||
// Move the remaining decimals into the exponent.
|
||||
exponent += remaining_decimals;
|
||||
int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
|
||||
uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
|
||||
|
||||
int old_e = input.e();
|
||||
input.Normalize();
|
||||
|
|
Loading…
Reference in a new issue