Skip to content

Commit 020cfe5

Browse files
committed
fix std::max
1 parent 33caa61 commit 020cfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/new_vector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ template <typename T, bool IsMasked> class PandasHashTable {
137137
auto SizeOf() const noexcept {
138138
constexpr auto overhead = 4 * sizeof(uint32_t) + 3 * sizeof(uint32_t *);
139139
const auto for_flags =
140-
std::max(1UL, hash_map_.n_buckets() >> 5) * sizeof(uint32_t);
140+
std::max(decltype(hash_map_.n_buckets()){1}, hash_map_.n_buckets() >> 5) * sizeof(uint32_t);
141141
const auto for_pairs =
142142
hash_map_.n_buckets() * (sizeof(T) + sizeof(Py_ssize_t));
143143

0 commit comments

Comments
 (0)