From f81cb9f3652c940e5b83e9d25d84c9e6d85e1bd1 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sun, 19 Dec 2021 21:05:21 +0400 Subject: [PATCH] Revert "Useless cast" This reverts commit 7e95963940c6dc5e0cfe46bd59bb9119d1fa19a1. --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 8762d847..16f3d2e9 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -407,7 +407,7 @@ SPDLOG_INLINE int pid() SPDLOG_NOEXCEPT #ifdef _WIN32 return static_cast(::GetCurrentProcessId()); #else - return ::getpid(); + return static_cast(::getpid()); #endif }