From 3e1a8294c707dea15e9960e3cebdb32fac318927 Mon Sep 17 00:00:00 2001 From: Shruti Shivakumar Date: Fri, 21 Feb 2025 01:21:45 +0000 Subject: [PATCH] more cleanup --- cpp/src/io/comp/uncomp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/src/io/comp/uncomp.cpp b/cpp/src/io/comp/uncomp.cpp index 42433fb4b21..e9a64696dfe 100644 --- a/cpp/src/io/comp/uncomp.cpp +++ b/cpp/src/io/comp/uncomp.cpp @@ -448,8 +448,8 @@ unsigned long long ZSTD_findDecompressedSize(host_span src) unsigned long long totalDstSize = 0; auto ZSTD_startingInputLength = []() { return 5; }; bool is_little_endian = []() { - uint16_t n = 0x1; - uint8_t* byte = reinterpret_cast(&n); + uint16_t n = 0x1; + auto byte = reinterpret_cast(&n); return (*byte == n); }(); uint32_t magic_number = [is_little_endian, src]() { @@ -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);