Skip to content

Commit d22a247

Browse files
authored
Fix bug making ~0x1 mask in stdlib/toolchain/CompatibilityDynamicReplacements/DynamicReplaceable.cpp (#82264)
Solves #62665.
1 parent 1e02b3b commit d22a247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/toolchain/CompatibilityDynamicReplacements/DynamicReplaceable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extern "C" char *swift_getFunctionReplacement50(char **ReplFnPtr, char *CurrFn)
5252

5353
auto origKey = compat50Key.get();
5454
if ((origKey & 0x1) != 0) {
55-
auto mask = ((uintptr_t)-1) < 1;
55+
auto mask = ((uintptr_t)-1) << 1;
5656
auto resetKey = origKey & mask;
5757
compat50Key.set(resetKey);
5858
return nullptr;

0 commit comments

Comments
 (0)