File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ public var _stdlib_FD_SETSIZE: CInt {
38
38
}
39
39
40
40
public struct _stdlib_fd_set {
41
- var _data : [ UInt32 ]
41
+ var _data : [ UInt ]
42
42
static var _wordBits : Int {
43
- return sizeof ( UInt32 ) * 8
43
+ return sizeof ( UInt ) * 8
44
44
}
45
45
46
46
public init ( ) {
47
- _data = [ UInt32 ] (
47
+ _data = [ UInt ] (
48
48
repeating: 0 ,
49
49
count: Int ( _stdlib_FD_SETSIZE) / _stdlib_fd_set. _wordBits)
50
50
}
@@ -53,20 +53,20 @@ public struct _stdlib_fd_set {
53
53
let fdInt = Int ( fd)
54
54
return (
55
55
_data [ fdInt / _stdlib_fd_set. _wordBits] &
56
- UInt32 ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
56
+ UInt ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
57
57
) != 0
58
58
}
59
59
60
60
public mutating func set( _ fd: CInt ) {
61
61
let fdInt = Int ( fd)
62
62
_data [ fdInt / _stdlib_fd_set. _wordBits] |=
63
- UInt32 ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
63
+ UInt ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
64
64
}
65
65
66
66
public mutating func clear( _ fd: CInt ) {
67
67
let fdInt = Int ( fd)
68
68
_data [ fdInt / _stdlib_fd_set. _wordBits] &=
69
- ~ UInt32 ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
69
+ ~ UInt ( 1 << ( fdInt % _stdlib_fd_set. _wordBits) )
70
70
}
71
71
72
72
public mutating func zero( ) {
You can’t perform that action at this time.
0 commit comments