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

Unified Diff: lib/src/intl/number_format.dart

Issue 878603009: Tighten up a couple method signatures to specify that int is required. (Closed) Base URL: git@github.com:dart-lang/intl.git@master
Patch Set: Created 5 years, 11 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 | « lib/src/intl/date_format_helpers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/intl/number_format.dart
diff --git a/lib/src/intl/number_format.dart b/lib/src/intl/number_format.dart
index db4c7a4a53204c2eafc9c7df7edb01033a5fbec9..5d9cf08a5a491600dd22d4144d4f4601fc60da15 100644
--- a/lib/src/intl/number_format.dart
+++ b/lib/src/intl/number_format.dart
@@ -710,7 +710,7 @@ class _NumberParser {
}
var normalizedText = _normalized.toString();
- var parsed = int.parse(normalizedText, onError: (message) => null);
+ num parsed = int.parse(normalizedText, onError: (message) => null);
Alan Knight 2015/01/27 21:10:18 It's minor but I don't love this. Especially when
if (parsed == null) parsed = double.parse(normalizedText);
return parsed / scale;
}
« no previous file with comments | « lib/src/intl/date_format_helpers.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698