diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-10-04 14:06:40 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-10-04 14:06:40 +0000 |
commit | 02bf8fff18fae983bce6f308c160e655ec72a035 (patch) | |
tree | 74c948c26c70376fc7acf34ab2e0e30a3389733e | |
parent | 9f013a7ccd34f6ee169ff7189f503a9f2b097fff (diff) | |
download | scala-02bf8fff18fae983bce6f308c160e655ec72a035.tar.gz scala-02bf8fff18fae983bce6f308c160e655ec72a035.tar.bz2 scala-02bf8fff18fae983bce6f308c160e655ec72a035.zip |
fixed boolean2ordered
-rw-r--r-- | src/library/scala/Predef.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 30e1112e50..ee9e511d81 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -155,7 +155,7 @@ object Predef { implicit def boolean2ordered(x: boolean): Ordered[boolean] = new Ordered[boolean] with Proxy { def self: Any = x - def compare (y: boolean) = if (x == y) 0 else if (x) 1 else 0 + def compare (y: boolean) = if (x == y) 0 else if (x) 1 else -1 } implicit def iterable2ordered[a <% Ordered[a]](xs: Iterable[a]): Ordered[Iterable[a]] = |