summaryrefslogtreecommitdiff
path: root/libgo/go/sort/sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/sort/sort.go')
-rw-r--r--libgo/go/sort/sort.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/sort/sort.go b/libgo/go/sort/sort.go
index 4aa4ca6d7da..31da3c83d0d 100644
--- a/libgo/go/sort/sort.go
+++ b/libgo/go/sort/sort.go
@@ -191,7 +191,7 @@ func Sort(data Interface) {
maxDepth++
}
maxDepth *= 2
- quickSort(data, 0, data.Len(), maxDepth)
+ quickSort(data, 0, n, maxDepth)
}
func IsSorted(data Interface) bool {