From 864abd57f0d41e4e420aa32a70fbdc20dfe7cdbd Mon Sep 17 00:00:00 2001 From: Mike Graham Date: Mon, 5 Dec 2016 19:00:25 -0500 Subject: [PATCH] This should be a 64-bit int, not an 8-bit int --- pandas/src/hash.pyx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/src/hash.pyx b/pandas/src/hash.pyx index a393e0df96954..06ed947808e39 100644 --- a/pandas/src/hash.pyx +++ b/pandas/src/hash.pyx @@ -40,7 +40,8 @@ def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'): Py_ssize_t i, l, n ndarray[uint64_t] result bytes data, k - uint8_t *kb, *lens + uint8_t *kb + uint64_t *lens char **vecs, *cdata object val @@ -55,7 +56,7 @@ def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'): # create an array of bytes vecs = malloc(n * sizeof(char *)) - lens = malloc(n * sizeof(uint8_t)) + lens = malloc(n * sizeof(uint64_t)) cdef list datas = [] for i in range(n):