Skip to content

Commit 378cffb

Browse files
mikegrahamjreback
authored andcommitted
This should be a 64-bit int, not an 8-bit int
1 parent 009d000 commit 378cffb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/src/hash.pyx

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'):
4040
Py_ssize_t i, l, n
4141
ndarray[uint64_t] result
4242
bytes data, k
43-
uint8_t *kb, *lens
43+
uint8_t *kb
44+
uint64_t *lens
4445
char **vecs, *cdata
4546
object val
4647

@@ -55,7 +56,7 @@ def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'):
5556

5657
# create an array of bytes
5758
vecs = <char **> malloc(n * sizeof(char *))
58-
lens = <uint8_t*> malloc(n * sizeof(uint8_t))
59+
lens = <uint64_t*> malloc(n * sizeof(uint64_t))
5960

6061
cdef list datas = []
6162
for i in range(n):

0 commit comments

Comments
 (0)