python: Fix off by one range

The range goes from 31 to 1 inclusive (#2391).
This commit is contained in:
Alexandre Jousset authored and Patrick committed 2021-05-28 19:39:44 -05:00
1 parent 4fc22a978a
commit 734d888210
1 file changed
+1 -1
+1 -1
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