[fix] fix incorrect serialized_size of TDigest object (#8046)

This commit is contained in:
spaces-x
2022-02-17 10:47:22 +08:00
committed by GitHub
parent d1cb2913c1
commit 53f22bbc14

View File

@ -443,7 +443,7 @@ public:
}
uint32_t serialized_size() {
return sizeof(Value) * 5 + sizeof(Index) * 2 + sizeof(size_t) * 3 +
return sizeof(Value) * 5 + sizeof(Index) * 2 + sizeof(uint32_t) * 3 +
_processed.size() * sizeof(Centroid) + _unprocessed.size() * sizeof(Centroid) +
_cumulative.size() * sizeof(Weight);
}