Skip to content

Commit 9effff8

Browse files
committed
Foundation: repair build for android ARMv7
``` D:/a/1/s/swift-corelibs-foundation/Foundation/FileManager+POSIX.swift:987:41: error: cannot convert value of type 'UInt64' to expected argument type 'dev_t' (aka 'UInt32') return _dev_major(file1.st_rdev) == _dev_major(file2.st_rdev) ~~~~~~^~~~~~~ dev_t( ) ```
1 parent ed17690 commit 9effff8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/FileManager+POSIX.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ internal func _contentsEqual(atPath path1: String, andPath path2: String) -> Boo
984984

985985
if file1Type == S_IFCHR || file1Type == S_IFBLK {
986986
// For character devices, just check the major/minor pair is the same.
987-
return _dev_major(file1.st_rdev) == _dev_major(file2.st_rdev)
988-
&& _dev_minor(file1.st_rdev) == _dev_minor(file2.st_rdev)
987+
return _dev_major(dev_t(file1.st_rdev)) == _dev_major(dev_t(file2.st_rdev))
988+
&& _dev_minor(dev_t(file1.st_rdev)) == _dev_minor(dev_t(file2.st_rdev))
989989
}
990990

991991
// If both paths point to the same device/inode or they are both zero length

0 commit comments

Comments
 (0)