Skip to content

Commit 565a9b9

Browse files
authored
Merge pull request #75051 from al45tair/eng/PR-131294724
[Runtime] Add missing cast.
2 parents 71c81d5 + 64b891d commit 565a9b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/Paths.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ _swift_tryAuxExePath(const char *name, const char *path, ...)
532532
void
533533
_swift_initRuntimePath(void *) {
534534
#if APPLE_OS_SYSTEM
535-
const char *path = dyld_image_path_containing_address(_swift_initRuntimePath);
535+
const char *path =
536+
dyld_image_path_containing_address((const void *)_swift_initRuntimePath);
536537

537538
// No need to ::strdup() this, as the return value is guaranteed to remain
538539
// valid as long as the library is loaded.

0 commit comments

Comments
 (0)