Skip to content

Commit

Permalink
Revert "fixup! [wip] fix EOF error"
Browse files Browse the repository at this point in the history
This reverts commit 0947f9e.
  • Loading branch information
mxmlnkn committed Dec 21, 2023
1 parent 9727703 commit e81594f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rapidgzip/zlib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,10 @@ ZlibInflateWrapper::readStream( uint8_t* const output,
* the footer!
* - [ ] test 1000x concatentation of small test files
* - [ ] test exact created indexes, i.e., chunks should probably not include footers for downwards compatibility!
* - [ ] add python API to get file type
*/
//if ( !progressedBits && !progressedOutput && ( m_stream.total_out == 0 ) && ( oldUnusedBits == 0 ) ) {
// break;
//}
if ( !progressedBits && !progressedOutput && ( m_stream.total_out == 0 ) && ( oldUnusedBits == 0 ) ) {
break;
}
decodedSize += m_stream.total_out;

/* If we started with raw deflate, then we also have to skip over the gzip footer.
Expand Down

0 comments on commit e81594f

Please sign in to comment.