Skip to content

Commit

Permalink
error can shift more than 32 bits.
Browse files Browse the repository at this point in the history
See issue 47.
  • Loading branch information
floitsch committed Jul 26, 2014
1 parent 1a895d6 commit 361924f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strtod.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 361924f

Please sign in to comment.