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/09/27 21:40:49 UTC
[datasketches-cpp] 01/01: fixed printing uint8_t values
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch fix_hll_to_string
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
commit 08f1622a8fb4f1e7e9b5d63d07dafd4706181843
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon Sep 27 14:40:22 2021 -0700
fixed printing uint8_t values
---
hll/include/HllSketch-internal.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hll/include/HllSketch-internal.hpp b/hll/include/HllSketch-internal.hpp
index 80e6887..c048039 100644
--- a/hll/include/HllSketch-internal.hpp
+++ b/hll/include/HllSketch-internal.hpp
@@ -249,7 +249,7 @@ string<A> hll_sketch_alloc<A>::to_string(const bool summary,
std::basic_ostringstream<char, std::char_traits<char>, AllocChar<A>> os;
if (summary) {
os << "### HLL sketch summary:" << std::endl
- << " Log Config K : " << get_lg_config_k() << std::endl
+ << " Log Config K : " << std::to_string(get_lg_config_k()) << std::endl
<< " Hll Target : " << type_as_string() << std::endl
<< " Current Mode : " << mode_as_string() << std::endl
<< " LB : " << get_lower_bound(1) << std::endl
@@ -258,7 +258,7 @@ string<A> hll_sketch_alloc<A>::to_string(const bool summary,
<< " OutOfOrder flag: " << (is_out_of_order_flag() ? "true" : "false") << std::endl;
if (get_current_mode() == HLL) {
HllArray<A>* hllArray = (HllArray<A>*) sketch_impl;
- os << " CurMin : " << hllArray->getCurMin() << std::endl
+ os << " CurMin : " << std::to_string(hllArray->getCurMin()) << std::endl
<< " NumAtCurMin : " << hllArray->getNumAtCurMin() << std::endl
<< " HipAccum : " << hllArray->getHipAccum() << std::endl
<< " KxQ0 : " << hllArray->getKxQ0() << std::endl
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org