Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 3494102

Browse files
committed
static_cast
1 parent 1266c17 commit 3494102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/Src/Utilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ std::filesystem::path Tkge::Utilities::GetCurrentExecutablePath()
2626
char buffer[PATH_MAX]{};
2727
ssize_t length = readlink("/proc/self/exe", buffer, PATH_MAX);
2828
if (length == -1) return {}; // Error case
29-
CachePath = std::filesystem::path{std::string(buffer, length)}.parent_path();
29+
CachePath = std::filesystem::path{std::string(buffer, static_cast<std::size_t>(length))}.parent_path();
3030
#else
3131
static_assert(false, "Unsupported platform");
3232
#endif

0 commit comments

Comments
 (0)