Skip to content

Commit 2bb0f9d

Browse files
authored
FIx protobuf issue (#164)
1 parent 4961349 commit 2bb0f9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/OpenSwiftUICore/Data/Protobuf/ProtobufDecoder.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Audited for iOS 18.0
66
// Status: Complete
7-
// ID: FFA06CAF6B06DC3E21EC75547A0CD421
7+
// ID: FFA06CAF6B06DC3E21EC75547A0CD421 (SwiftUICore)
88

99
package import Foundation
1010

@@ -65,6 +65,8 @@ extension ProtobufDecoder {
6565
return packedField
6666
} else if packedEnd < ptr {
6767
throw DecodingError.failed
68+
} else {
69+
packedField = Field(rawValue: 0)
6870
}
6971
}
7072
let result = try decodeVariant()

Sources/OpenSwiftUICore/Data/Protobuf/ProtobufEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Audited for iOS 18.0
66
// Status: Complete
7-
// ID: C7B3AAD101AF9EA76FC322BD6EF713E6
7+
// ID: C7B3AAD101AF9EA76FC322BD6EF713E6 (SwiftUICore)
88

99
package import Foundation
1010

0 commit comments

Comments
 (0)