Skip to content

Commit

Permalink
zipios++: [skip ci] apply bugfix on ZipLocalEntry::trailingDataDescri…
Browse files Browse the repository at this point in the history
…ptor() from upstream
  • Loading branch information
wwmayer committed Jan 13, 2021
1 parent af4de26 commit 8f4da8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/zipios++/ziphead.cpp
Expand Up @@ -198,10 +198,7 @@ bool ZipLocalEntry::trailingDataDescriptor() const {
// gp_bitfield bit 3 is one, if this entry uses a trailing data
// descriptor to keep size, compressed size and crc-32
// fields.
if ( ( gp_bitfield & 4 ) == 4 )
return true ;
else
return false ;
return ( gp_bitfield & 4 ) != 0 ;
}

FileEntry *ZipLocalEntry::clone() const {
Expand Down

0 comments on commit 8f4da8b

Please sign in to comment.