File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2055,7 +2055,7 @@ extension _AnyDecoder {
20552055 }
20562056
20572057 // TODO: Add a flag to coerce non-boolean numbers into Bools?
2058- guard number. _cfTypeID == CFBooleanGetTypeID ( ) else {
2058+ guard CFGetTypeID ( number) == CFBooleanGetTypeID ( ) else {
20592059 throw DecodingError . _typeMismatch ( at: self . codingPath, expectation: type, reality: value)
20602060 }
20612061
Original file line number Diff line number Diff line change @@ -2058,7 +2058,7 @@ extension _MapDecoder {
20582058 }
20592059
20602060 // TODO: Add a flag to coerce non-boolean numbers into Bools?
2061- guard number. _cfTypeID == CFBooleanGetTypeID ( ) else {
2061+ guard CFGetTypeID ( number) == CFBooleanGetTypeID ( ) else {
20622062 throw DecodingError . _typeMismatch ( at: self . codingPath, expectation: type, reality: value)
20632063 }
20642064
You can’t perform that action at this time.
0 commit comments