scala/scala — pull request #4128 by ruippeixotog (2014-11-11 01:48:23+00:00)
Title: SI-8932 Fix dropRight/takeRight implementations

I looked up at all the overrides of `IterableLike#takeRight` and
`IterableLike#dropRight` and replaced usages of its argument `n` with
`math.max(n, 0)` every time it was being used in an index subtraction.

Fixes [SI-8932](https://issues.scala-lang.org/browse/SI-8932).