diff options
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") } |
