summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-11-05 12:33:43 +0000
committermichelou <michelou@epfl.ch>2007-11-05 12:33:43 +0000
commit99a7957c4f2a970955f3780ace68d7567bf411e9 (patch)
tree802e12f559690c70592a2d08959706fa02e54acd /src/dotnet-library
parentb91088da8dd15abfec9d4819201d4ad4454e3c9c (diff)
downloadscala-99a7957c4f2a970955f3780ace68d7567bf411e9.tar.gz
scala-99a7957c4f2a970955f3780ace68d7567bf411e9.tar.bz2
scala-99a7957c4f2a970955f3780ace68d7567bf411e9.zip
moved runtime.TypeRep to branch (not yet mature)
Diffstat (limited to 'src/dotnet-library')
-rw-r--r--src/dotnet-library/scala/Predef.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotnet-library/scala/Predef.scala b/src/dotnet-library/scala/Predef.scala
index 3feb140e3c..f03be9ed93 100644
--- a/src/dotnet-library/scala/Predef.scala
+++ b/src/dotnet-library/scala/Predef.scala
@@ -195,7 +195,10 @@ object Predef {
val those = that.elements
while (res == 0 && these.hasNext)
res = if (those.hasNext) these.next compare those.next else 1
- res
+ if (res == 0) {
+ if (those.hasNext) -1 else 0
+ } else
+ res
}
}