diff options
Diffstat (limited to 'vendor/github.com/zfjagann/golang-ring')
-rw-r--r-- | vendor/github.com/zfjagann/golang-ring/ring.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/zfjagann/golang-ring/ring.go b/vendor/github.com/zfjagann/golang-ring/ring.go index 345ee8cd..6d2a7e24 100644 --- a/vendor/github.com/zfjagann/golang-ring/ring.go +++ b/vendor/github.com/zfjagann/golang-ring/ring.go @@ -56,7 +56,7 @@ func (r *Ring) ContentSize() int { } else { difference := (r.head - r.tail) if difference < 0 { - difference += r.capacity() + difference = -difference } return difference + 1 } |