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

Unified Diff: samples/third_party/dromaeo/Dromaeo.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 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
Index: samples/third_party/dromaeo/Dromaeo.dart
diff --git a/samples/third_party/dromaeo/Dromaeo.dart b/samples/third_party/dromaeo/Dromaeo.dart
index e9bcf4f89a2116a74f1ed54ddeb3e27e1790c6aa..67642e9663afc416f94e1b791e4c17da40f4d159 100644
--- a/samples/third_party/dromaeo/Dromaeo.dart
+++ b/samples/third_party/dromaeo/Dromaeo.dart
@@ -147,8 +147,8 @@ class Dromaeo {
// TODO(jat): Remove void type below. Bug 5269037.
void _updateTime() {
- final mins = (estimatedTimeSecs / 60).floor().toInt();
- final secs = (estimatedTimeSecs - mins * 60).round().toInt();
+ final mins = (estimatedTimeSecs / 60).floor();
+ final secs = (estimatedTimeSecs - mins * 60).round();
final secsAsString = '${(secs < 10 ? "0" : "")}$secs';
_byId('left').innerHtml = '${mins}:${secsAsString}';

Powered by Google App Engine
This is Rietveld 408576698