Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shrshi committed Feb 21, 2025
1 parent 9b96cd9 commit 3e1a829
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/src/io/comp/uncomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ unsigned long long ZSTD_findDecompressedSize(host_span<uint8_t const> src)
unsigned long long totalDstSize = 0;
auto ZSTD_startingInputLength = []() { return 5; };
bool is_little_endian = []() {
uint16_t n = 0x1;
uint8_t* byte = reinterpret_cast<uint8_t*>(&n);
uint16_t n = 0x1;
auto byte = reinterpret_cast<uint8_t*>(&n);
return (*byte == n);
}();
uint32_t magic_number = [is_little_endian, src]() {
Expand Down Expand Up @@ -635,7 +635,6 @@ source_properties get_source_properties(compression_type compression, host_span<
[[fallthrough]];
}
case compression_type::ZSTD: {
uncomp_len = 0;
comp_data = raw;
comp_len = src.size();
auto const ret = ZSTD_findDecompressedSize(src);
Expand Down

0 comments on commit 3e1a829

Please sign in to comment.