From 99a05b145e2544e018a0f551dd22ff8af44b6ce2 Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 16 Aug 2011 00:47:09 +0000 Subject: [PATCH] Stop tempting the devil and use the proper type for time git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9513 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/addons/addon.cpp | 4 ++-- src/utils/time.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()