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

Unified Diff: samples/swarm/swarm_ui_lib/layout/GridLayout.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/GridLayout.dart
diff --git a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
index 10526205733be992aa8ad54b6e2cf2c1cdf0b145..5fe1a7edbbdcf22ee6a08493ef03036dd57dc12d 100644
--- a/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
+++ b/samples/swarm/swarm_ui_lib/layout/GridLayout.dart
@@ -232,10 +232,10 @@ class GridLayout extends ViewLayout {
int startEdge = tracks[i].start;
int endEdge;
if (i < tracks.length - 1) {
- endEdge = tracks[i + 1].start.round().toInt();
+ endEdge = tracks[i + 1].start.round();
tracks[i + 1].start = endEdge;
} else {
- endEdge = finalPosition.round().toInt();
+ endEdge = finalPosition.round();
}
int breadth = endEdge - startEdge;

Powered by Google App Engine
This is Rietveld 408576698