Update CompressedWriteBuffer.cpp

This commit is contained in:
Maksim Kita 2022-05-16 20:44:22 +02:00 committed by GitHub
parent f334cd371f
commit fd28c19c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ void CompressedWriteBuffer::nextImpl()
compressed_size = codec->compress(working_buffer.begin(), decompressed_size, out_compressed_ptr);
CityHash_v1_0_2::uint128 checksum = CityHash_v1_0_2::CityHash128(out_compressed_ptr, compressed_size);
memcpy(out_checksum_ptr, &checksum, CHECKSUM_SIZE);
memcpy(out_checksum_ptr, reinterpret_cast<const char *>(&checksum), CHECKSUM_SIZE);
out.position() += CHECKSUM_SIZE + compressed_size;
}
else