Skip to content

Commit

Permalink
Merge pull request #82 from saemideluxe/master
Browse files Browse the repository at this point in the history
fix: integer-overflow on arm 32-bit systems
  • Loading branch information
guzba authored Jul 26, 2024
2 parents fa4134c + 56466a8 commit 3bcfd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zippy/ziparchives.nim
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ proc openZipArchive*(
compressedSize: compressedSize,
uncompressedSize: uncompressedSize,
uncompressedCrc32: uncompressedCrc32,
filePermissions: parseFilePermissions(externalFileAttr.int shr 16)
filePermissions: parseFilePermissions((externalFileAttr.uint shr 16).int)
)
except IOError as e:
result.close()
Expand Down

0 comments on commit 3bcfd71

Please sign in to comment.