Commit e36acdfb authored by Robert Griesemer's avatar Robert Griesemer

sort: eliminate extra Len() call

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5521052
parent a3baccef
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment