Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ac4402

Browse files
fix: avoid bitshifting uint8 (#31)
1 parent06b4c16 commit7ac4402

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
throwReceiveError.invalidLength
9292
}
93-
returnUInt32(data[0] <<24 |data[1] <<16 |data[2] <<8 |data[3])
93+
returnUInt32(data[0]) <<24 |UInt32(data[1]) <<16 |UInt32(data[2]) <<8 |UInt32(data[3])
9494
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp