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 2021/05/26 22:33:54 UTC

[datasketches-cpp] branch avoid_warnings updated: avoid warnings

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

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


The following commit(s) were added to refs/heads/avoid_warnings by this push:
     new 190962c  avoid warnings
190962c is described below

commit 190962c25c57ea49a23e6f687841b7192f6643b6
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed May 26 15:33:28 2021 -0700

    avoid warnings
---
 theta/include/theta_update_sketch_base_impl.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/theta/include/theta_update_sketch_base_impl.hpp b/theta/include/theta_update_sketch_base_impl.hpp
index cb1bc2a..28c1f6e 100644
--- a/theta/include/theta_update_sketch_base_impl.hpp
+++ b/theta/include/theta_update_sketch_base_impl.hpp
@@ -141,8 +141,8 @@ auto theta_update_sketch_base<EN, EK, A>::find(uint64_t key) const -> std::pair<
 
 template<typename EN, typename EK, typename A>
 auto theta_update_sketch_base<EN, EK, A>::find(EN* entries, uint8_t lg_size, uint64_t key) -> std::pair<iterator, bool> {
-  const size_t size = 1 << lg_size;
-  const size_t mask = size - 1;
+  const uint32_t size = 1 << lg_size;
+  const uint32_t mask = size - 1;
   const uint32_t stride = get_stride(key, lg_size);
   uint32_t index = static_cast<uint32_t>(key) & mask;
   // search for duplicate or zero

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