aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/posix/posixHandler.cpp6
-rw-r--r--src/platforms/windows/windowsHandler.cpp4
2 files changed, 5 insertions, 5 deletions
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 <unsigned long>(::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,
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp
index 99b52cdf..f306710f 100644
--- a/src/platforms/windows/windowsHandler.cpp
+++ b/src/platforms/windows/windowsHandler.cpp
@@ -71,9 +71,9 @@ windowsHandler::~windowsHandler()
}
-unsigned int windowsHandler::getUnixTime() const
+unsigned long windowsHandler::getUnixTime() const
{
- return static_cast <unsigned int>(::time(NULL));
+ return static_cast <unsigned long>(::time(NULL));
}