~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/index/suffixarray/suffixarray.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
                        if len(indices) == 0 {
116
116
                                return
117
117
                        }
118
 
                        sort.SortInts(indices)
 
118
                        sort.Ints(indices)
119
119
                        pairs := make([]int, 2*len(indices))
120
120
                        result = make([][]int, len(indices))
121
121
                        count := 0
159
159
                if len(indices) == 0 {
160
160
                        return
161
161
                }
162
 
                sort.SortInts(indices)
 
162
                sort.Ints(indices)
163
163
                result = result[0:0]
164
164
                prev := 0
165
165
                for _, i := range indices {