Skip to content

Commit 06a1c38

Browse files
committed
Quell some warnings about casting.
1 parent 86e11c5 commit 06a1c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/runtime/ExistentialMetadataImpl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,13 @@ struct LLVM_LIBRARY_VISIBILITY NonFixedOpaqueExistentialBox
386386
swift_getHeapObjectExtraInhabitantCount();
387387

388388
static void storeExtraInhabitant(Container *dest, int index) {
389-
swift_storeHeapObjectExtraInhabitant((HeapObject**)&dest->Header.Type,
390-
index);
389+
swift_storeHeapObjectExtraInhabitant(
390+
(HeapObject**)(uintptr_t)&dest->Header.Type, index);
391391
}
392392

393393
static int getExtraInhabitantIndex(const Container *src) {
394394
return swift_getHeapObjectExtraInhabitantIndex(
395-
(HeapObject* const *)&src->Header.Type);
395+
(HeapObject* const *)(uintptr_t)&src->Header.Type);
396396
}
397397
};
398398

0 commit comments

Comments
 (0)