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

Unified Diff: pkg/fixnum/test/int_64_vm_test.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
« no previous file with comments | « no previous file | pkg/intl/lib/number_format.dart » ('j') | runtime/lib/double.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fixnum/test/int_64_vm_test.dart
diff --git a/pkg/fixnum/test/int_64_vm_test.dart b/pkg/fixnum/test/int_64_vm_test.dart
index 03ce1120a06314a4f32b8ba8c6eed7ee692f4618..b0d33ef9ebb765b775091c0f408a4bc916b90634 100644
--- a/pkg/fixnum/test/int_64_vm_test.dart
+++ b/pkg/fixnum/test/int_64_vm_test.dart
@@ -56,7 +56,7 @@ int _randomInt(int n) {
for (int i = 0; i < DISCARD; i++) {
rand = random.nextDouble();
}
- return (rand * n).floor().toInt();
+ return (rand * n).floor();
}
class Op {
« no previous file with comments | « no previous file | pkg/intl/lib/number_format.dart » ('j') | runtime/lib/double.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698