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

Unified Diff: lib/src/frontend/timeout.dart

Issue 1960503002: Fix all strong-mode errors and warnings. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: .analysis_options Created 4 years, 7 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/frontend/throws_matcher.dart ('k') | lib/src/runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/frontend/timeout.dart
diff --git a/lib/src/frontend/timeout.dart b/lib/src/frontend/timeout.dart
index 9aca1c021102a00fe0c8bb2d08c7b38807f6463d..63669370d4fae88f15b46d02edef4f855585e6fb 100644
--- a/lib/src/frontend/timeout.dart
+++ b/lib/src/frontend/timeout.dart
@@ -89,7 +89,7 @@ class Timeout {
// Parse time units until none are left. The condition is in the middle of
// the loop because we've already parsed the first number.
- var microseconds = 0;
+ var microseconds = 0.0;
while (true) {
scanner.expect(_unit, name: "unit");
microseconds += _microsecondsFor(number, scanner.lastMatch[0]);
« no previous file with comments | « lib/src/frontend/throws_matcher.dart ('k') | lib/src/runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698