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/03/17 22:07:10 UTC
[datasketches-cpp] branch cleanup_warnings updated: better type
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
The following commit(s) were added to refs/heads/cleanup_warnings by this push:
new 6e032bb better type
6e032bb is described below
commit 6e032bb244dc8e8343ea13659d13235d2e8b8054
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed Mar 17 15:07:01 2021 -0700
better type
---
cpc/include/cpc_compressor_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpc/include/cpc_compressor_impl.hpp b/cpc/include/cpc_compressor_impl.hpp
index 677dd08..9b1fce7 100644
--- a/cpc/include/cpc_compressor_impl.hpp
+++ b/cpc/include/cpc_compressor_impl.hpp
@@ -635,7 +635,7 @@ void cpc_compressor<A>::low_level_uncompress_pairs(
maybe_fill_bitbuf(bitbuf, bufbits, compressed_words, word_index, 12); // ensure 12 bits in bit buffer
const size_t peek12 = bitbuf & 0xfff;
const uint16_t lookup = length_limited_unary_decoding_table65[peek12];
- const int code_word_length = lookup >> 8;
+ const uint8_t code_word_length = lookup >> 8;
const int16_t x_delta = lookup & 0xff;
bitbuf >>= code_word_length;
bufbits -= code_word_length;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org