Skip to content

Commit 76bed79

Browse files
committed
Use custom kh_int_t
1 parent 4235d15 commit 76bed79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/new_vector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ template <typename T, bool IsMasked> class PandasHashTable {
661661
return;
662662
}
663663

664-
klib::KHashMap<T, size_t, PandasHashFunction<T>, PandasHashEquality<T>>
664+
klib::KHashMap<T, size_t, PandasHashFunction<T>, PandasHashEquality<T>, pd_kh_int_t>
665665
hash_map_;
666666
Py_ssize_t na_position_ = -1;
667667
};

pandas/tests/libs/test_hashtable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_vector_resize(
311311
)
312312
def test_hashtable_large_sizehint(self, hashtable):
313313
# GH#22729 smoketest for not raising when passing a large size_hint
314-
size_hint = np.iinfo(np.uint32).max + 1
314+
size_hint = np.iinfo(np.uint32).max
315315
hashtable(size_hint=size_hint)
316316

317317

0 commit comments

Comments
 (0)