summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
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
}
}