diff --git a/support/src/utils/unix.cpp b/support/src/utils/unix.cpp index 2f820aca..038019f8 100644 --- a/support/src/utils/unix.cpp +++ b/support/src/utils/unix.cpp @@ -88,11 +88,7 @@ namespace { } // namespace namespace repertory::utils { -#if defined(__APPLE__) -auto convert_to_uint64(pthread_t thread) -> std::uint64_t { - return reinterpret_cast(thread); -} -#else // defined(__APPLE__) +#if !defined(__APPLE__) auto convert_to_uint64(const pthread_t &thread) -> std::uint64_t { return static_cast(thread); }