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
commit 47bcc445049a6b81c34a5b13b17c155e6068055f Author: Alexander Saydakov <[email protected]> AuthorDate: Tue Mar 30 18:59:56 2021 -0700 better type --- 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 ed078ac..74fbf4e 100755 --- a/req/include/req_compactor_impl.hpp +++ b/req/include/req_compactor_impl.hpp @@ -174,7 +174,7 @@ void req_compactor<T, C, A>::append(FwdT&& item) { template<typename T, typename C, typename A> void req_compactor<T, C, A>::grow(uint32_t new_capacity) { T* new_items = allocator_.allocate(new_capacity); - size_t new_i = hra_ ? new_capacity - num_items_ : 0; + uint32_t new_i = hra_ ? new_capacity - num_items_ : 0; for (auto it = begin(); it != end(); ++it, ++new_i) { new (new_items + new_i) T(std::move(*it)); (*it).~T(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
