You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/11/25 20:53:14 UTC

[incubator-datasketches-cpp] 02/02: avoid warning

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch req_sketch
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git

commit e3c6eb6789d12766f362eeca4e92a2c09ab24f42
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed Nov 25 12:53:04 2020 -0800

    avoid warning
---
 req/include/req_compactor_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/req/include/req_compactor_impl.hpp b/req/include/req_compactor_impl.hpp
index 462b9b8..361fa1f 100755
--- a/req/include/req_compactor_impl.hpp
+++ b/req/include/req_compactor_impl.hpp
@@ -158,7 +158,7 @@ template<typename T, bool H, typename C, typename A>
 bool req_compactor<T, H, C, A>::ensure_enough_sections() {
   const float ssr = section_size_raw_ / sqrt(2);
   const uint32_t ne = nearest_even(ssr);
-  if (state_ >= 1 << (num_sections_ - 1) && ne >= req_constants::MIN_K) {
+  if (state_ >= static_cast<uint64_t>(1 << (num_sections_ - 1)) && ne >= req_constants::MIN_K) {
     section_size_raw_ = ssr;
     section_size_ = ne;
     num_sections_ <<= 1;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org