Skip to content

Commit

Permalink
removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSaydakov committed Mar 23, 2024
1 parent 82f5bd5 commit a693442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdigest/include/tdigest_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ double tdigest<T, A>::weighted_average(double x1, double w1, double x2, double w
template<typename T, typename A>
void tdigest<T, A>::serialize(std::ostream& os, bool with_buffer) const {
if (!with_buffer) const_cast<tdigest*>(this)->compress(); // side effect
write(os, is_empty() || is_single_value() ? PREAMBLE_LONGS_EMPTY_OR_SINGLE : PREAMBLE_LONGS_MULTIPLE);
write(os, get_preamble_longs());
write(os, SERIAL_VERSION);
write(os, SKETCH_TYPE);
write(os, k_);
Expand Down

0 comments on commit a693442

Please sign in to comment.