diff --git a/src/gui/upnpbrowser.cpp b/src/gui/upnpbrowser.cpp index a2f255f17..665b1e7e1 100644 --- a/src/gui/upnpbrowser.cpp +++ b/src/gui/upnpbrowser.cpp @@ -1367,7 +1367,7 @@ void CUpnpBrowserGui::updateTimes(const bool force) //printf("updateTimes: force %d updatePlayed %d\n", force, updatePlayed); char play_time[24]; - snprintf(play_time, sizeof(play_time), "%ld:%02ld", m_time_played / 60, m_time_played % 60); + snprintf(play_time, sizeof(play_time), "%" PRId64 ":%02" PRId64, (int64_t)(m_time_played / 60), (int64_t)(m_time_played % 60)); if (updatePlayed) {