From 94adb0fd68d931db2cd4eeb470bf008819921e99 Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:20:40 +0000 Subject: [PATCH] Make i variables unsigned --- src/dawg.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dawg.pyx b/src/dawg.pyx index d452274..7bfe475 100644 --- a/src/dawg.pyx +++ b/src/dawg.pyx @@ -581,7 +581,7 @@ cdef class BytesDAWG(CompletionDAWG): cpdef list items(self, unicode prefix=""): cdef bytes b_prefix = prefix.encode('utf8') cdef bytes value - cdef int i + cdef unsigned int i cdef list res = [] cdef char* raw_key cdef char* raw_value @@ -623,7 +623,7 @@ cdef class BytesDAWG(CompletionDAWG): def iteritems(self, unicode prefix=""): cdef bytes b_prefix = prefix.encode('utf8') cdef bytes value - cdef int i + cdef unsigned int i cdef char* raw_key cdef char* raw_value cdef int raw_value_len @@ -659,7 +659,7 @@ cdef class BytesDAWG(CompletionDAWG): cpdef list keys(self, unicode prefix=""): cdef bytes b_prefix = prefix.encode('utf8') - cdef int i + cdef unsigned int i cdef list res = [] cdef char* raw_key @@ -684,7 +684,7 @@ cdef class BytesDAWG(CompletionDAWG): def iterkeys(self, unicode prefix=""): cdef bytes b_prefix = prefix.encode('utf8') - cdef int i + cdef unsigned int i cdef char* raw_key cdef BaseType index = self.dct.root()