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

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

commit ececa0710f7fd830a272b26c01200f11a766b9c3
Author: AlexanderSaydakov <[email protected]>
AuthorDate: Fri Jan 10 10:33:36 2025 -0800

    better error messages
---
 theta/include/bit_packing.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/theta/include/bit_packing.hpp b/theta/include/bit_packing.hpp
index 284239f..4298a0c 100644
--- a/theta/include/bit_packing.hpp
+++ b/theta/include/bit_packing.hpp
@@ -6201,7 +6201,7 @@ static inline void pack_bits_block8(const uint64_t* 
values, uint8_t* ptr, uint8_
     case 61: pack_bits_61(values, ptr); break;
     case 62: pack_bits_62(values, ptr); break;
     case 63: pack_bits_63(values, ptr); break;
-    default: throw std::logic_error("wrong number of bits " + 
std::to_string(bits));
+    default: throw std::logic_error("wrong number of bits in pack_bits_block8: 
" + std::to_string(bits));
   }
 }
 
@@ -6270,7 +6270,7 @@ static inline void unpack_bits_block8(uint64_t* values, 
const uint8_t* ptr, uint
     case 61: unpack_bits_61(values, ptr); break;
     case 62: unpack_bits_62(values, ptr); break;
     case 63: unpack_bits_63(values, ptr); break;
-    default: throw std::logic_error("wrong number of bits " + 
std::to_string(bits));
+    default: throw std::logic_error("wrong number of bits in 
unpack_bits_block8: " + std::to_string(bits));
   }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to