python: Fix off by one range
The range goes from 31 to 1 inclusive (#2391).
This commit is contained in:
parent
4fc22a978a
commit
734d888210
@ -198,7 +198,7 @@ else:
|
|||||||
|
|
||||||
# There can be empty entries between non-empty ones so find the actual last value
|
# There can be empty entries between non-empty ones so find the actual last value
|
||||||
def wordlist_len(words):
|
def wordlist_len(words):
|
||||||
for i in range(31, 1, -1):
|
for i in range(31, 0, -1):
|
||||||
if ffi.string(words[i]):
|
if ffi.string(words[i]):
|
||||||
return i
|
return i
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user