diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-08 21:05:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-08 21:21:21 +0300 |
commit | f376848b53283a882b83d291dd085b7bbd56ee57 (patch) | |
tree | 11fd32bf22b67a2a9d8924f5b2a86edabd0b358f | |
parent | 345433f9386ef77c71dd91a4324a73577929b995 (diff) | |
download | manaverse-f376848b53283a882b83d291dd085b7bbd56ee57.tar.gz manaverse-f376848b53283a882b83d291dd085b7bbd56ee57.tar.bz2 manaverse-f376848b53283a882b83d291dd085b7bbd56ee57.tar.xz manaverse-f376848b53283a882b83d291dd085b7bbd56ee57.zip |
Fix compilation for NACL.
-rw-r--r-- | src/utils/stringutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index d384ef28c..b4e6e01b0 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -794,7 +794,7 @@ std::string timeToStr(const int time) { char buf[101]; const long tempTime = static_cast<long>(time); - tm *const timeInfo = localtime(&tempTime); + tm *const timeInfo = localtime(reinterpret_cast<const time_t*>(&tempTime)); if (strftime(&buf[0], 100, "%Y-%m-%d_%H-%M-%S", timeInfo)) return std::string(buf); else |