Skip to content

Commit

Permalink
Make i variables unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor authored Jan 8, 2024
1 parent 0980365 commit 94adb0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dawg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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()
Expand Down

0 comments on commit 94adb0f

Please sign in to comment.