This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch cleanup_warnings
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
The following commit(s) were added to refs/heads/cleanup_warnings by this push:
new 727944b simplify
new f6304c6 Merge branch 'cleanup_warnings' of
[email protected]:apache/datasketches-cpp.git into cleanup_warnings
727944b is described below
commit 727944b0da5a5e0c60ba1ff7d3ada08a611939dc
Author: AlexanderSaydakov <[email protected]>
AuthorDate: Wed Apr 7 12:18:32 2021 -0700
simplify
---
hll/include/HllUtil.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hll/include/HllUtil.hpp b/hll/include/HllUtil.hpp
index 76e9ac9..8a02664 100644
--- a/hll/include/HllUtil.hpp
+++ b/hll/include/HllUtil.hpp
@@ -227,10 +227,10 @@ inline uint8_t HllUtil<A>::computeLgArrInts(hll_mode
mode, uint32_t count, uint8
uint32_t ceilPwr2 = ceiling_power_of_2(count);
if ((HllUtil<A>::RESIZE_DENOM * count) > (HllUtil<A>::RESIZE_NUMER *
ceilPwr2)) { ceilPwr2 <<= 1;}
if (mode == SET) {
- return std::max<uint8_t>(HllUtil<A>::LG_INIT_SET_SIZE,
HllUtil<A>::simpleIntLog2(ceilPwr2));
+ return std::max(HllUtil<A>::LG_INIT_SET_SIZE,
HllUtil<A>::simpleIntLog2(ceilPwr2));
}
//only used for HLL4
- return std::max<uint8_t>(HllUtil<A>::LG_AUX_ARR_INTS[lgConfigK],
HllUtil<A>::simpleIntLog2(ceilPwr2));
+ return std::max(HllUtil<A>::LG_AUX_ARR_INTS[lgConfigK],
HllUtil<A>::simpleIntLog2(ceilPwr2));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]