python: Fix off by one range

The range goes from 31 to 1 inclusive (#2391).
This commit is contained in:
Alexandre Jousset 2021-05-28 04:21:28 +02:00 committed by Patrick
parent 4fc22a978a
commit 734d888210
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ else:
# There can be empty entries between non-empty ones so find the actual last value
def wordlist_len(words):
for i in range(31, 1, -1):
for i in range(31, 0, -1):
if ffi.string(words[i]):
return i