From 21945be4c4ef822b7dc5f6ded80027bd5437ce9d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 24 Mar 2013 12:30:26 +0100 Subject: Fixed warnings and 64-bit issues. --- src/platforms/posix/posixHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/platforms/posix/posixHandler.cpp') diff --git a/src/platforms/posix/posixHandler.cpp b/src/platforms/posix/posixHandler.cpp index f06c865f..73005d7e 100644 --- a/src/platforms/posix/posixHandler.cpp +++ b/src/platforms/posix/posixHandler.cpp @@ -123,9 +123,9 @@ posixHandler::~posixHandler() } -unsigned int posixHandler::getUnixTime() const +unsigned long posixHandler::getUnixTime() const { - return ::time(NULL); + return static_cast (::time(NULL)); } @@ -156,7 +156,7 @@ const vmime::datetime posixHandler::getCurrentLocalTime() const gmt.tm_isdst = -1; // Calculate the difference (in seconds) - const int diff = ::mktime(&local) - ::mktime(&gmt); + const long diff = ::mktime(&local) - ::mktime(&gmt); // Return the date return vmime::datetime(local.tm_year + 1900, local.tm_mon + 1, local.tm_mday, -- cgit