diff options
| author | Jes Cok <xigua67damn@gmail.com> | 2023-09-15 21:15:56 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-09-18 20:01:34 +0000 |
| commit | f4e7675d1150cb683f3d2db7a96084b0d6e26e83 (patch) | |
| tree | 340df6f82a5795fd470b3a0dc97b807178f99225 /src/index/suffixarray | |
| parent | 3702cb5ab95575830488dc2b1ca9424651f828cf (diff) | |
| download | go-f4e7675d1150cb683f3d2db7a96084b0d6e26e83.tar.xz | |
all: clean unnecessary casts
Run 'unconvert -safe -apply' (https://github.com/mdempsky/unconvert)
Change-Id: I24b7cd7d286cddce86431d8470d15c5f3f0d1106
GitHub-Last-Rev: 022e75384c08bb899a8951ba0daffa0f2e14d5a7
GitHub-Pull-Request: golang/go#62662
Reviewed-on: https://go-review.googlesource.com/c/go/+/528696
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/index/suffixarray')
| -rw-r--r-- | src/index/suffixarray/sais.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/suffixarray/sais.go b/src/index/suffixarray/sais.go index 3283aa348d..b53700be35 100644 --- a/src/index/suffixarray/sais.go +++ b/src/index/suffixarray/sais.go @@ -141,7 +141,7 @@ func text_32(text []byte, sa []int32) { // then the algorithm runs a little faster. // If sais_8_32 modifies tmp, it sets tmp[0] = -1 on return. func sais_8_32(text []byte, textMax int, sa, tmp []int32) { - if len(sa) != len(text) || len(tmp) < int(textMax) { + if len(sa) != len(text) || len(tmp) < textMax { panic("suffixarray: misuse of sais_8_32") } |
