Skip to content

Commit 7ac4402

Browse files
fix: avoid bitshifting uint8 (#31)
1 parent 06b4c16 commit 7ac4402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Coder Desktop/VPNLib/Receiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ func deserializeLen(_ data: Data) throws -> UInt32 {
9090
if data.count != 4 {
9191
throw ReceiveError.invalidLength
9292
}
93-
return UInt32(data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3])
93+
return UInt32(data[0]) << 24 | UInt32(data[1]) << 16 | UInt32(data[2]) << 8 | UInt32(data[3])
9494
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy