Skip to content

Commit

Permalink
Merge pull request #69 from Vindaar/fixIsizeMod
Browse files Browse the repository at this point in the history
fix `isize` check to be mod 2^32 instead 2^31
  • Loading branch information
guzba authored Oct 21, 2023
2 parents ba8ab95 + 5546ef5 commit 8a20077
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 8a20077

Please sign in to comment.