From f376848b53283a882b83d291dd085b7bbd56ee57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 May 2015 21:05:18 +0300 Subject: Fix compilation for NACL. --- src/utils/stringutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') 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(time); - tm *const timeInfo = localtime(&tempTime); + tm *const timeInfo = localtime(reinterpret_cast(&tempTime)); if (strftime(&buf[0], 100, "%Y-%m-%d_%H-%M-%S", timeInfo)) return std::string(buf); else -- cgit v1.2.3-60-g2f50