diff options
author | Rory Graves <rory.graves@fieldmark.co.uk> | 2017-03-04 09:59:04 +0100 |
---|---|---|
committer | Rory Graves <rory.graves@fieldmark.co.uk> | 2017-03-04 19:41:25 +0100 |
commit | f7cd76b532f00964107d2e3a1c49451111a972d6 (patch) | |
tree | 2fe2ed63c174c1712a6b8db07691f117b659e862 /src/reflect/scala/reflect | |
parent | d1d700e15cd38ac42462e099b0e0f33e280bbbe0 (diff) | |
download | scala-f7cd76b532f00964107d2e3a1c49451111a972d6.tar.gz scala-f7cd76b532f00964107d2e3a1c49451111a972d6.tar.bz2 scala-f7cd76b532f00964107d2e3a1c49451111a972d6.zip |
Reduce boxing of scala.reflect.internal.Depth
Diffstat (limited to 'src/reflect/scala/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Depth.scala | 2 |
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) |