diff --git a/main.cc b/main.cc index 51ec8ea4ff..38a41cdf99 100644 --- a/main.cc +++ b/main.cc @@ -19,7 +19,7 @@ std::string_view errno_string() { // always write an error message to a given buffer. if (std::is_same::value) - return (char *)(uintptr_t)strerror_r(errno, buf, sizeof(buf)); + return reinterpret_cast(strerror_r(errno, buf, sizeof(buf))); strerror_r(errno, buf, sizeof(buf)); return buf; }