Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix ZstdDecompressor error check
  • Loading branch information
sfan5 committed Sep 2, 2021
1 parent b0ca3d7 commit f471554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZstdDecompressor.cpp
Expand Up @@ -47,9 +47,9 @@ ustring ZstdDecompressor::decompress()
buffer.resize(outbuf.size);
outbuf.dst = &buffer[0];
}
if (ret && ZSTD_isError(ret))
throw DecompressError();
} while (ret != 0);
if (ZSTD_isError(ret))
throw DecompressError();

m_seekPos = inbuf.pos;
buffer.resize(outbuf.pos);
Expand Down

0 comments on commit f471554

Please sign in to comment.