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

Unified Diff: samples/logo/logo.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/logo/logo.dart
diff --git a/samples/logo/logo.dart b/samples/logo/logo.dart
index 57623d4cef25978f22ea4df628e7b15b9f9fcac4..6ac9d7a7b30d1c7c83afff97a0b26009e150f1e4 100644
--- a/samples/logo/logo.dart
+++ b/samples/logo/logo.dart
@@ -43,7 +43,7 @@ class Color {
s = d/(2 - 2*l);
}
- return new Color((h.round() % 360).toInt(), s, l);
+ return new Color(h.round() % 360, s, l);
}
factory Color.fromHex(String hex) => new Color.rgb(

Powered by Google App Engine
This is Rietveld 408576698