Skip to content

Commit

Permalink
Merge pull request swiftlang#75051 from al45tair/eng/PR-131294724
Browse files Browse the repository at this point in the history
[Runtime] Add missing cast.
  • Loading branch information
al45tair committed Jul 8, 2024
2 parents 71c81d5 + 64b891d commit 565a9b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/public/runtime/Paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ _swift_tryAuxExePath(const char *name, const char *path, ...)
void
_swift_initRuntimePath(void *) {
#if APPLE_OS_SYSTEM
const char *path = dyld_image_path_containing_address(_swift_initRuntimePath);
const char *path =
dyld_image_path_containing_address((const void *)_swift_initRuntimePath);

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

0 comments on commit 565a9b9

Please sign in to comment.