<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 2018-06-07 1:37 PM, Rémi Denis-Courmont wrote:<br>
<blockquote type="cite"
cite="mid:ABD6AFF3-4334-46B2-8F23-9598BEBEF626@remlab.net">I would
rather the macro preserve constness, so it can be used in static
initialization, therefore no casting.<br>
</blockquote>
<br>
OK<br>
<br>
<blockquote type="cite"
cite="mid:ABD6AFF3-4334-46B2-8F23-9598BEBEF626@remlab.net">
<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 <a class="moz-txt-link-rfc2396E" href="mailto:robux4@ycbcr.xyz"><robux4@ycbcr.xyz></a> 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">---
include/vlc_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index d79ed61221..1168f2dc1b 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -288,7 +288,7 @@
*/
typedef int64_t mtime_t;
-#define MS_TO_MTIME(ms) ((ms) * (CLOCK_FREQ / 1000))
+#define MS_TO_MTIME(ms) ((mtime_t)((ms) * (CLOCK_FREQ / 1000)))
#define MTIME_TO_MS(ms) (((ms) * 1000) / CLOCK_FREQ)
</pre>
</blockquote>
</div>
<br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez
excuser ma brièveté.
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre>
</blockquote>
<br>
</body>
</html>