Skip to content

Commit 43fbf1e

Browse files
finagolfinhyp
andauthored
[android] fix 32-bit build (#1086) (#1120)
Regression after bb3fccf Co-authored-by: Alex Lorenz <[email protected]>
1 parent bca2f46 commit 43fbf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/FileManager/FileOperations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ enum _FileOperations {
960960

961961
#if !os(WASI) // WASI doesn't have fchmod for now
962962
// Copy permissions
963-
if fchmod(dstFD, statInfo.st_mode) != 0 {
963+
if fchmod(dstFD, mode_t(statInfo.st_mode)) != 0 {
964964
try delegate.throwIfNecessary(errno, srcPath(), dstPath())
965965
}
966966
#endif

0 commit comments

Comments
 (0)