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

Unified Diff: samples/swarm/swarm_ui_lib/layout/GridTracks.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/swarm/swarm_ui_lib/layout/GridTracks.dart
diff --git a/samples/swarm/swarm_ui_lib/layout/GridTracks.dart b/samples/swarm/swarm_ui_lib/layout/GridTracks.dart
index 99d5e7c7d1c2d40e3eed2ac53deb3f3134a5f0ac..122381475d565662ea4ed98b2d40109658cc7bce 100644
--- a/samples/swarm/swarm_ui_lib/layout/GridTracks.dart
+++ b/samples/swarm/swarm_ui_lib/layout/GridTracks.dart
@@ -91,7 +91,7 @@ class GridItemAlignment {
size = Math.min(size, span.length);
num center = span.start + span.length / 2;
num left = center - size / 2;
- return new _GridLocation(left.round().toInt(), size);
+ return new _GridLocation(left.round(), size);
case 'stretch':
return span;
}

Powered by Google App Engine
This is Rietveld 408576698