Skip to content
Snippets Groups Projects
Commit de4811e9 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

Force using a 64bit intermediate when calculating calendar time with av_timegm().

Fixes a fate failure with icc 13.1
parent d30ee5ef
No related branches found
No related tags found
No related merge requests found
...@@ -519,7 +519,7 @@ time_t av_timegm(struct tm *tm) ...@@ -519,7 +519,7 @@ time_t av_timegm(struct tm *tm)
y--; y--;
} }
t = 86400 * t = 86400LL *
(d + (153 * m - 457) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 719469); (d + (153 * m - 457) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 719469);
t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec; t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment