summaryrefslogtreecommitdiff
path: root/src/common/utils.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-04-11 14:43:09 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-04-11 14:43:09 -0700
commit1abd4980217b2fa98bc07d4b739a9747a6dc1903 (patch)
treed5683bded2e1514081718e7e20a8fcb04a524a6c /src/common/utils.hpp
parent17c12f96c7bf62b30fb1ff1d07f4650daa57b89c (diff)
downloadtmwa-1abd4980217b2fa98bc07d4b739a9747a6dc1903.tar.gz
tmwa-1abd4980217b2fa98bc07d4b739a9747a6dc1903.tar.bz2
tmwa-1abd4980217b2fa98bc07d4b739a9747a6dc1903.tar.xz
tmwa-1abd4980217b2fa98bc07d4b739a9747a6dc1903.zip
Stupid fix for the x32 patch
Diffstat (limited to 'src/common/utils.hpp')
-rw-r--r--src/common/utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utils.hpp b/src/common/utils.hpp
index 0de8d81..33117ac 100644
--- a/src/common/utils.hpp
+++ b/src/common/utils.hpp
@@ -74,7 +74,7 @@ struct TimeT : Comparable
TimeT(time_t t=0) : value(t) {}
TimeT(struct tm t) : value(timegm(&t)) {}
operator time_t() { return value; }
- operator struct tm() { return *gmtime(&value); }
+ operator struct tm() { time_t v = value; return *gmtime(&v); }
explicit operator bool() { return value; }
bool operator !() { return !value; }