From f4e7675d1150cb683f3d2db7a96084b0d6e26e83 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Fri, 15 Sep 2023 21:15:56 +0000 Subject: 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Michael Pratt --- src/index/suffixarray/sais.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index/suffixarray') 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") } -- cgit v1.3