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

Unified Diff: runtime/lib/double.dart

Issue 27302003: Document equality and compareTo of numbers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 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 | sdk/lib/core/num.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.dart
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
index b08dcbc5a7a9a484f66af656255d4302e275fd60..6480f5d7a47b9d78ea1339c815c182cdc87f1fe8 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -211,7 +211,7 @@ class _Double implements double {
native "Double_toStringAsPrecision";
// Order is: NaN > Infinity > ... > 0.0 > -0.0 > ... > -Infinity.
- int compareTo(Comparable other) {
+ int compareTo(num other) {
final int EQUAL = 0, LESS = -1, GREATER = 1;
if (this < other) {
return LESS;
« no previous file with comments | « no previous file | sdk/lib/core/num.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698