mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix data type on read32 in BitArray
This commit is contained in:
parent
3d43f49f69
commit
45460f505c
|
@ -20,4 +20,4 @@ cdef class BitArray:
|
|||
|
||||
cdef int extend(self, uint64_t code, char n_bits) except -1
|
||||
|
||||
cdef uint32_t read32(self) except 0
|
||||
cdef int32_t read32(self) except 0
|
||||
|
|
|
@ -65,7 +65,7 @@ cdef class BitArray:
|
|||
self.i += 1
|
||||
yield 1 if self.byte & (one << i) else 0
|
||||
|
||||
cdef uint32_t read32(self) except 0:
|
||||
cpdef int32_t read32(self) except 0:
|
||||
cdef int start_byte = self.i // 8
|
||||
|
||||
# TODO portability
|
||||
|
|
Loading…
Reference in New Issue
Block a user