summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRory Graves <rory.graves@fieldmark.co.uk>2017-03-04 09:59:04 +0100
committerRory Graves <rory.graves@fieldmark.co.uk>2017-03-04 19:41:25 +0100
commitf7cd76b532f00964107d2e3a1c49451111a972d6 (patch)
tree2fe2ed63c174c1712a6b8db07691f117b659e862
parentd1d700e15cd38ac42462e099b0e0f33e280bbbe0 (diff)
downloadscala-f7cd76b532f00964107d2e3a1c49451111a972d6.tar.gz
scala-f7cd76b532f00964107d2e3a1c49451111a972d6.tar.bz2
scala-f7cd76b532f00964107d2e3a1c49451111a972d6.zip
Reduce boxing of scala.reflect.internal.Depth
-rw-r--r--src/reflect/scala/reflect/internal/Depth.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/Depth.scala b/src/reflect/scala/reflect/internal/Depth.scala
index a330e0accb..5e7202f8bf 100644
--- a/src/reflect/scala/reflect/internal/Depth.scala
+++ b/src/reflect/scala/reflect/internal/Depth.scala
@@ -5,7 +5,7 @@ package internal
import Depth._
final class Depth private (val depth: Int) extends AnyVal with Ordered[Depth] {
- def max(that: Depth): Depth = if (this < that) that else this
+ def max(that: Depth): Depth = if (this.depth < that.depth) that else this
def decr(n: Int): Depth = if (isAnyDepth) this else Depth(depth - n)
def incr(n: Int): Depth = if (isAnyDepth) this else Depth(depth + n)
def decr: Depth = decr(1)