Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Leviathan3DPrinting committed May 10, 2024
1 parent 7f64bb1 commit 0b58190
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ion/src/shared/decompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@
void Ion::decompress(const uint8_t * src, uint8_t * dst, int srcSize, int dstSize) {
int outputSize = LZ4_decompress_safe(reinterpret_cast<const char *>(src), reinterpret_cast<char *>(dst), srcSize, dstSize);
(void)outputSize; // Make the compiler happy if assertions are disabled
if (outputSize < 0 || outputSize <= dstSize) { // Check the data came back valid
outputSize = LZ4_decompress_safe(reinterpret_cast<const char *>(src), reinterpret_cast<char *>(dst), srcSize, dstSize);
}
else {
assert(outputSize == dstSize);
}
assert(outputSize == dstSize);
}

0 comments on commit 0b58190

Please sign in to comment.