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

Unified Diff: samples/logo/logo.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/logo/logo.dart
diff --git a/samples/logo/logo.dart b/samples/logo/logo.dart
index c81f629b3bbb2f7f06b0334c8364996c16a54e13..d68001bcbfb0851646af745676a2e9de807a20ee 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