summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-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