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 {
2055
2055
}
2056
2056
2057
2057
// TODO: Add a flag to coerce non-boolean numbers into Bools?
2058
- guard number. _cfTypeID == CFBooleanGetTypeID ( ) else {
2058
+ guard CFGetTypeID ( number) == CFBooleanGetTypeID ( ) else {
2059
2059
throw DecodingError . _typeMismatch ( at: self . codingPath, expectation: type, reality: value)
2060
2060
}
2061
2061
Original file line number Diff line number Diff line change @@ -2058,7 +2058,7 @@ extension _MapDecoder {
2058
2058
}
2059
2059
2060
2060
// TODO: Add a flag to coerce non-boolean numbers into Bools?
2061
- guard number. _cfTypeID == CFBooleanGetTypeID ( ) else {
2061
+ guard CFGetTypeID ( number) == CFBooleanGetTypeID ( ) else {
2062
2062
throw DecodingError . _typeMismatch ( at: self . codingPath, expectation: type, reality: value)
2063
2063
}
2064
2064
You can’t perform that action at this time.
0 commit comments