Skip to content

Commit

Permalink
Format fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
peddie committed Sep 14, 2023
1 parent 25c0a8a commit 9823fdf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/albatross/src/utils/compress.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ inline std::string compress(const void *data, std::size_t size_bytes,
std::string compressed{};
compressed.resize(compressed_bound);

const std::size_t compressed_size =
ZSTD_compress(
static_cast<void *>(const_cast<char *>(compressed.data())), // NOLINT
compressed.size(), data, size_bytes, compression_level);
const std::size_t compressed_size = ZSTD_compress(
static_cast<void *>(const_cast<char *>(compressed.data())), // NOLINT
compressed.size(), data, size_bytes, compression_level);

compressed.resize(compressed_size);
compressed.shrink_to_fit();
Expand Down

0 comments on commit 9823fdf

Please sign in to comment.