Skip to content

Commit cf7aeb1

Browse files
committed
fixed Swift5 warnings
1 parent f007b86 commit cf7aeb1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Source/WebSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ private class InnerWebSocket: Hashable {
15091509
}
15101510
}
15111511
let r = arc4random()
1512-
var maskBytes : [UInt8] = [UInt8(r >> 0 & 0xFF), UInt8(r >> 8 & 0xFF), UInt8(r >> 16 & 0xFF), UInt8(r >> 24 & 0xFF)]
1512+
let maskBytes : [UInt8] = [UInt8(r >> 0 & 0xFF), UInt8(r >> 8 & 0xFF), UInt8(r >> 16 & 0xFF), UInt8(r >> 24 & 0xFF)]
15131513
for i in 0 ..< 4 {
15141514
head[hlen] = maskBytes[i]
15151515
hlen += 1

SwiftWebSocket.xcodeproj/project.pbxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,9 @@
352352
};
353353
buildConfigurationList = 03D1E6FD1B20897100AC49AC /* Build configuration list for PBXProject "SwiftWebSocket" */;
354354
compatibilityVersion = "Xcode 3.2";
355-
developmentRegion = English;
355+
developmentRegion = en;
356356
hasScannedForEncodings = 0;
357357
knownRegions = (
358-
English,
359358
en,
360359
Base,
361360
);

0 commit comments

Comments
 (0)