Skip to content

Commit 501f30d

Browse files
committed
[SR-14813] Tidy up the DLQ_GetPtrAuthMask case.
We should be using C++ casts here.
1 parent b7db160 commit 501f30d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/swift-reflection-fuzzer/swift-reflection-fuzzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class ObjectMemoryReader : public MemoryReader {
7777
case DLQ_GetPtrAuthMask: {
7878
auto result = static_cast<uintptr_t *>(outBuffer);
7979
#if __has_feature(ptrauth_calls)
80-
*result = (uintptr_t)ptrauth_strip((void*)0x0007ffffffffffff, 0);
80+
*result = static_cast<uintptr_t>(ptrauth_strip(static_cast<void *>(0x0007ffffffffffff), 0));
8181
#else
82-
*result = (uintptr_t)~0ull;
82+
*result = ~uintptr_t(0);
8383
#endif
8484
return true;
8585
}

0 commit comments

Comments
 (0)