summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-08 21:05:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-08 21:21:21 +0300
commitf376848b53283a882b83d291dd085b7bbd56ee57 (patch)
tree11fd32bf22b67a2a9d8924f5b2a86edabd0b358f /src
parent345433f9386ef77c71dd91a4324a73577929b995 (diff)
downloadmv-f376848b53283a882b83d291dd085b7bbd56ee57.tar.gz
mv-f376848b53283a882b83d291dd085b7bbd56ee57.tar.bz2
mv-f376848b53283a882b83d291dd085b7bbd56ee57.tar.xz
mv-f376848b53283a882b83d291dd085b7bbd56ee57.zip
Fix compilation for NACL.
Diffstat (limited to 'src')
-rw-r--r--src/utils/stringutils.cpp2
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