Skip to content

Commit

Permalink
Merge pull request #2534 from ahoppen/ahoppen/5.10/unaligned-load
Browse files Browse the repository at this point in the history
[5.10] Change `load` to `loadUnaligned`
  • Loading branch information
ahoppen authored Mar 8, 2024
2 parents 666f336 + d44705d commit fa8f95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftCompilerPlugin/CompilerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ internal struct PluginHostConnection: MessageConnection {

// Decode the count.
let count = header.withUnsafeBytes {
UInt64(littleEndian: $0.load(as: UInt64.self))
UInt64(littleEndian: $0.loadUnaligned(as: UInt64.self))
}
guard count >= 2 else {
throw PluginMessageError.invalidPayloadSize
Expand Down

0 comments on commit fa8f95c

Please sign in to comment.