We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c3939 commit 42a7ff6Copy full SHA for 42a7ff6
include/swift/Runtime/Metadata.h
@@ -3442,7 +3442,7 @@ inline int swift_getFunctionPointerExtraInhabitantIndex(void * const* src) {
3442
inline void swift_storeFunctionPointerExtraInhabitant(void **dest, int index) {
3443
// This must be consistent with the storeFunctionPointerExtraInhabitantIndex
3444
// implementation in IRGen's ExtraInhabitants.cpp.
3445
- *dest = reinterpret_cast<void*>((unsigned) index);
+ *dest = reinterpret_cast<void*>(static_cast<uintptr_t>(index));
3446
}
3447
3448
/// Return the number of extra inhabitants in a function pointer.
0 commit comments