When compiled for Arm 32-bit and run on a Raspberry Pi Zero, zippy throws the following RangeDefect:
Error: unhandled exception: value out of range: 2176188416 notin -2147483648 .. 2147483647 [RangeDefect]
This is because the proc parseFilePermissions() is set up to read the platform-flexible signed int, and externalFileAttr: uint32 is converted to an int when parsing file permissions. It should instead be used as the uint32 it already is. We can fix this by changing the following two lines:
When compiled for Arm 32-bit and run on a Raspberry Pi Zero, zippy throws the following RangeDefect:
Error: unhandled exception: value out of range: 2176188416 notin -2147483648 .. 2147483647 [RangeDefect]
This is because the proc
parseFilePermissions()
is set up to read the platform-flexible signedint
, andexternalFileAttr: uint32
is converted to anint
when parsing file permissions. It should instead be used as theuint32
it already is. We can fix this by changing the following two lines:These changes negate the issue on the Raspberry Pi Zero, and hopefully should do the same on other 32-bit systems.