mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Switch From Bitwise to Logical And
This seems to have been a thinko that got copied-and-pasted around this file.
This commit is contained in:
@@ -1743,7 +1743,7 @@ static DynamicCastResult tryCastUnwrappingExtendedExistentialSource(
|
||||
srcFailureType = srcInnerType;
|
||||
return tryCast(destLocation, destType, srcInnerValue, srcInnerType,
|
||||
destFailureType, srcFailureType,
|
||||
takeOnSuccess & (srcInnerValue == srcValue), mayDeferChecks);
|
||||
takeOnSuccess && (srcInnerValue == srcValue), mayDeferChecks);
|
||||
}
|
||||
|
||||
static DynamicCastResult
|
||||
@@ -1765,7 +1765,7 @@ tryCastUnwrappingExistentialMetatypeSource(
|
||||
return tryCast(destLocation, destType,
|
||||
srcInnerValue, srcInnerType,
|
||||
destFailureType, srcFailureType,
|
||||
takeOnSuccess & (srcInnerValue == srcValue),
|
||||
takeOnSuccess && (srcInnerValue == srcValue),
|
||||
mayDeferChecks);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user