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

Unified Diff: samples/swarm/Decoder.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/swarm/Decoder.dart
diff --git a/samples/swarm/Decoder.dart b/samples/swarm/Decoder.dart
index d4210085107a3bb27a365ee32e4a7fe0bd6c8b67..3772f8ddea8b495ed1060480df784a5f552f97c3 100644
--- a/samples/swarm/Decoder.dart
+++ b/samples/swarm/Decoder.dart
@@ -24,7 +24,7 @@ class Decoder {
r |= (v & 0x3F) << (6 * i);
if ((v & 0x40) == 0) break;
}
- return r.toInt();
+ return r.truncate();
}
bool readBool() {

Powered by Google App Engine
This is Rietveld 408576698