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

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

Issue 12317107: ceil/floor/truncate/round return integers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Some fixes from CL 11748016. Created 7 years, 10 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 8f7593f0993ac91ed727b9a28fa282c3183d22a4..2428f39ae06175acb0cd23106ebd88b4988714d0 100644
--- a/samples/third_party/dromaeo/Dromaeo.dart
+++ b/samples/third_party/dromaeo/Dromaeo.dart
@@ -155,8 +155,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