@@ -222,7 +222,7 @@ cdef class StringHashTable(HashTable):
222
222
buf = util.get_c_string(val)
223
223
k = kh_get_str(self .table, buf)
224
224
if k == self .table.n_buckets:
225
- k = kh_put_str(self .table, buf, & ret)
225
+ kh_put_str(self .table, buf, & ret)
226
226
# print 'putting %s, %s' % (val, count)
227
227
uniques.append(val)
228
228
@@ -525,7 +525,7 @@ cdef class Int64HashTable: #(HashTable):
525
525
val = values[i]
526
526
k = kh_get_int64(self .table, val)
527
527
if k == self .table.n_buckets:
528
- k = kh_put_int64(self .table, val, & ret)
528
+ kh_put_int64(self .table, val, & ret)
529
529
uniques.append(val)
530
530
531
531
result = uniques.to_array()
@@ -651,7 +651,7 @@ cdef class Float64HashTable(HashTable):
651
651
if val == val:
652
652
k = kh_get_float64(self .table, val)
653
653
if k == self .table.n_buckets:
654
- k = kh_put_float64(self .table, val, & ret)
654
+ kh_put_float64(self .table, val, & ret)
655
655
uniques.append(val)
656
656
elif not seen_na:
657
657
seen_na = 1
@@ -792,7 +792,7 @@ cdef class PyObjectHashTable(HashTable):
792
792
if not _checknan(val):
793
793
k = kh_get_pymap(self .table, < PyObject* > val)
794
794
if k == self .table.n_buckets:
795
- k = kh_put_pymap(self .table, < PyObject* > val, & ret)
795
+ kh_put_pymap(self .table, < PyObject* > val, & ret)
796
796
uniques.append(val)
797
797
elif not seen_na:
798
798
seen_na = 1
0 commit comments