diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index 36741d25..d4a9ecef 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -59,7 +59,7 @@ windowsHandler::~windowsHandler() const unsigned int windowsHandler::getUnixTime() const { - return (unsigned int)::time(NULL); + return static_cast (::time(NULL)); } @@ -227,7 +227,7 @@ const vmime::string windowsHandler::getHostName() const const unsigned int windowsHandler::getProcessId() const { - return (::getpid()); + return (static_cast (::GetCurrentProcessId()); }