Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
lnkuiper committed Aug 26, 2024
1 parent 4ff7a38 commit d495ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/types/hyperloglog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ class HLLV1 {
const auto max_new = MinValue(new_hll.GetRegister(i), duckdb_hll::maximum_zeros());
uint8_t register_value;
if (static_cast<double>(i) / static_cast<double>(HyperLogLog::M) < floor_fraction) {
register_value = NumericCast<uint8_t>(floor(default_val));
register_value = ExactNumericCast<uint8_t>(floor(default_val));
} else {
register_value = NumericCast<uint8_t>(ceil(default_val));
register_value = ExactNumericCast<uint8_t>(ceil(default_val));
}
register_value = MinValue(register_value, max_new);
for (idx_t j = 1; j < mult; j++) {
Expand Down

0 comments on commit d495ef5

Please sign in to comment.