From 0420b84a41f592421c527d7fa498bba909689e03 Mon Sep 17 00:00:00 2001 From: AlexanderSaydakov Date: Mon, 24 Apr 2023 11:07:02 -0700 Subject: [PATCH] minor cleanup --- cpc/include/cpc_sketch_impl.hpp | 2 +- kll/include/kll_helper.hpp | 1 - req/include/req_compactor_impl.hpp | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cpc/include/cpc_sketch_impl.hpp b/cpc/include/cpc_sketch_impl.hpp index 0881b703..c5f467e8 100644 --- a/cpc/include/cpc_sketch_impl.hpp +++ b/cpc/include/cpc_sketch_impl.hpp @@ -359,7 +359,7 @@ void cpc_sketch_alloc::refresh_kxp(const uint64_t* bit_matrix) { // for improved numerical accuracy, we separately sum the bytes of the U64's double byte_sums[8]; // allocating on the stack - std::fill(byte_sums, &byte_sums[8], 0); + std::fill(byte_sums, byte_sums + 8, 0); for (size_t i = 0; i < k; i++) { uint64_t word = bit_matrix[i]; diff --git a/kll/include/kll_helper.hpp b/kll/include/kll_helper.hpp index 750dd7e5..ff7a5fe0 100644 --- a/kll/include/kll_helper.hpp +++ b/kll/include/kll_helper.hpp @@ -20,7 +20,6 @@ #ifndef KLL_HELPER_HPP_ #define KLL_HELPER_HPP_ -#include #include namespace datasketches { diff --git a/req/include/req_compactor_impl.hpp b/req/include/req_compactor_impl.hpp index bef70eba..f650ca89 100755 --- a/req/include/req_compactor_impl.hpp +++ b/req/include/req_compactor_impl.hpp @@ -28,8 +28,6 @@ #include "conditional_forward.hpp" #include "common_defs.hpp" -#include - namespace datasketches { template