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

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: Reupload due to error3 Created 7 years, 9 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | samples/solar3d/web/solar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | samples/solar3d/web/solar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698