diff --git a/Sources/ZIPFoundation/Data+Serialization.swift b/Sources/ZIPFoundation/Data+Serialization.swift index 4ec86010..59a8db15 100644 --- a/Sources/ZIPFoundation/Data+Serialization.swift +++ b/Sources/ZIPFoundation/Data+Serialization.swift @@ -29,7 +29,7 @@ extension Data { } func scanValue(start: Int) -> T { - return self.withUnsafeBytes() { + return self.withUnsafeBytes { $0.loadUnaligned(fromByteOffset: start, as: T.self) } }