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

Unified Diff: samples/spirodraw/ColorPicker.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/spirodraw/ColorPicker.dart
diff --git a/samples/spirodraw/ColorPicker.dart b/samples/spirodraw/ColorPicker.dart
index ad381dff538306ff000f488edd2788c25b2aacfe..f1a5a7cca1835458599469b579cd2281515cfe6c 100644
--- a/samples/spirodraw/ColorPicker.dart
+++ b/samples/spirodraw/ColorPicker.dart
@@ -107,7 +107,7 @@ class ColorPicker {
}
String getHexString(num value) {
- int i = value.floor().toInt();
+ int i = value.floor();
int r = (i ~/ 36) % 6;
int g = (i % 36) ~/ 6;

Powered by Google App Engine
This is Rietveld 408576698