@@ -110,16 +110,16 @@ const
110110 16 .uint8 , 17 , 18 , 0 , 8 , 7 , 9 , 6 , 10 , 5 , 11 , 4 , 12 , 3 , 13 , 2 , 14 , 1 , 15
111111 ]
112112
113- S_IFDIR * = 0o 0040000
114- TUREAD * = 0o 00400 # read by owner */
115- TUWRITE * = 0o 00200 # write by owner */
116- TUEXEC * = 0o 00100 # execute/search by owner */
117- TGREAD * = 0o 00040 # read by group */
118- TGWRITE * = 0o 00020 # write by group */
119- TGEXEC * = 0o 00010 # execute/search by group */
120- TOREAD * = 0o 00004 # read by other */
121- TOWRITE * = 0o 00002 # write by other */
122- TOEXEC * = 0o 00001 # execute/search by other */
113+ S_IFDIR * = 0o 0040000 'u32
114+ TUREAD * = 0o 00400 'u32 # read by owner */
115+ TUWRITE * = 0o 00200 'u32 # write by owner */
116+ TUEXEC * = 0o 00100 'u32 # execute/search by owner */
117+ TGREAD * = 0o 00040 'u32 # read by group */
118+ TGWRITE * = 0o 00020 'u32 # write by group */
119+ TGEXEC * = 0o 00010 'u32 # execute/search by group */
120+ TOREAD * = 0o 00004 'u32 # read by other */
121+ TOWRITE * = 0o 00002 'u32 # write by other */
122+ TOEXEC * = 0o 00001 'u32 # execute/search by other */
123123
124124type
125125 CompressionConfig * = object
@@ -272,7 +272,7 @@ proc determineMatchLength*(
272272proc toUnixPath * (path: string ): string =
273273 path.replace ('\\ ' , '/' )
274274
275- proc parseFilePermissions * (permissions: int ): set [FilePermission ] =
275+ proc parseFilePermissions * (permissions: uint32 ): set [FilePermission ] =
276276 if defined (windows) or permissions == 0 :
277277 # Ignore file permissions on Windows. If they are absent (.zip made on
278278 # Windows for example), set default permissions.
0 commit comments