<html><head></head><body>I would rather the macro preserve constness, so it can be used in static initialization, therefore no casting.<br>
<br>
Besides, the value is guaranteed to be (at least) 64-bits because of CLOCK_FREQ already.<br><br><div class="gmail_quote">Le 7 juin 2018 12:59:46 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">---<br> include/vlc_common.h | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/include/vlc_common.h b/include/vlc_common.h<br>index d79ed61221..1168f2dc1b 100644<br>--- a/include/vlc_common.h<br>+++ b/include/vlc_common.h<br>@@ -288,7 +288,7 @@<br>  */<br> typedef int64_t mtime_t;<br> <br>-#define MS_TO_MTIME(ms) ((ms) * (CLOCK_FREQ / 1000))<br>+#define MS_TO_MTIME(ms) ((mtime_t)((ms) * (CLOCK_FREQ / 1000)))<br> #define MTIME_TO_MS(ms) (((ms) * 1000) / CLOCK_FREQ)<br> <br> </pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>