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
This commit is contained in:
auria 2011-08-16 00:47:09 +00:00
parent 0e8ff0e40a
commit 99a05b145e
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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()