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

Unified Diff: runtime/lib/double_patch.dart

Issue 623073002: Fix wrong limit on list index in double.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | tests/corelib/double_parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double_patch.dart
diff --git a/runtime/lib/double_patch.dart b/runtime/lib/double_patch.dart
index 7dc4f54b88be5fd88465c866f8c482a14fc3eead..f00a833957dc03faa22409aeaab84c27fc8fa022 100644
--- a/runtime/lib/double_patch.dart
+++ b/runtime/lib/double_patch.dart
@@ -112,7 +112,7 @@ patch class double {
if (negExponent >= P10.length) return null;
return sign * (doubleValue / P10[negExponent]);
}
- if (exponent > P10.length) return null;
+ if (exponent >= P10.length) return null;
return sign * (doubleValue * P10[exponent]);
}
« no previous file with comments | « no previous file | tests/corelib/double_parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698