diff --git a/src/addons/addon.cpp b/src/addons/addon.cpp index 43bb9ce16..bd6f89c6d 100644 --- a/src/addons/addon.cpp +++ b/src/addons/addon.cpp @@ -131,8 +131,8 @@ void Addon::writeXML(std::ofstream *out_stream) // ---------------------------------------------------------------------------- std::string Addon::getDateAsString() const -{ - const struct tm *t = gmtime((time_t*)&m_date); +{ + const struct tm *t = gmtime(&m_date); char s[16]; strftime(s, 128, "%d.%m.%Y", t); return s; diff --git a/src/utils/time.hpp b/src/utils/time.hpp index 729a67e3d..f457fd224 100644 --- a/src/utils/time.hpp +++ b/src/utils/time.hpp @@ -35,7 +35,7 @@ public: #ifdef WIN32 typedef unsigned __int64 TimeType; #else - typedef uint_least64_t TimeType; + typedef time_t TimeType; #endif static TimeType getTimeSinceEpoch()