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

Unified Diff: samples/swarm/swarm_ui_lib/layout/GridLayout.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/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 47c2f10011ee6f83cf638ec9a56356dee495e94d..587000a0fb3a3434f9bba9b23c13b5867049f1fa 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