Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: third_party/WebKit/Source/wtf/dtoa/strtod.cc

Issue 2438383003: Fix undefined shift in DiyFpStrtod. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/dtoa/strtod.cc
diff --git a/third_party/WebKit/Source/wtf/dtoa/strtod.cc b/third_party/WebKit/Source/wtf/dtoa/strtod.cc
index d3b06199e758c67c03a8aad883344b342d43f0d9..998a0c4e912bcb9ab9bce844343c445685271378 100644
--- a/third_party/WebKit/Source/wtf/dtoa/strtod.cc
+++ b/third_party/WebKit/Source/wtf/dtoa/strtod.cc
@@ -264,7 +264,7 @@ namespace double_conversion {
const int kDenominator = 1 << kDenominatorLog;
// Move the remaining decimals into the exponent.
exponent += remaining_decimals;
- int error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
+ int64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
int old_e = input.e();
input.Normalize();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698