Skip to content

Commit

Permalink
fix isize check to be mod 2^32 instead 2^31
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Oct 21, 2023
1 parent ba8ab95 commit 5546ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zippy/gzip.nim
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ proc uncompressGzip*(
if checksum != crc32(dst):
raise newException(ZippyError, "Checksum verification failed")

if isize != (dst.len mod (1 shl 31)).uint32:
if isize != (dst.len mod (1 shl 32)).uint32:
raise newException(ZippyError, "Size verification failed")

0 comments on commit 5546ef5

Please sign in to comment.