<html><head></head><body>Hi,<br><br>size_t and unsigned should be the same on Win32, so I don't exactly see the point.<br><br>Of course, there *is* a problem on Win64, but either MingW should be fixed or a systematic work-around should be used,m (e.g. #define lfind lfind_size_t), otherwise the same bug will reoccur silently (only on 64-bits Windows) every time lfind() is used.<br><br><div class="gmail_quote">Le 12 juillet 2019 09:21:32 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">It expects an input 'unsigned int' instead of 'size_t' even though it's not<br>writing on the source.<br><br>Given there's no versioning on mingw32 we can't rely on such a header version<br>to do this trick or not<hr> modules/access/dtv/access.c | 7 ++++++-<br> 1 file changed, 6 insertions(+), 1 deletion(-)<br><br>diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c<br>index 0a4b0ae3c1..ef70be324a 100644<br>--- a/modules/access/dtv/access.c<br>+++ b/modules/access/dtv/access.c<br>@@ -666,7 +666,12 @@ static const char *var_InheritModulation (vlc_object_t *obj, const char *var)<br>     if (mod == NULL)<br>         return "";<br> <br>-    size_t n = sizeof (modulation_vlc) / sizeof (modulation_vlc[0]);<br>+#ifdef _WIN32<br>+    unsigned int n;<br>+#else /* !_WIN32 */<br>+    size_t n;<br>+#endif /* !_WIN32 */<br>+    n = sizeof (modulation_vlc) / sizeof (modulation_vlc[0]);<br>     const char *const *p = lfind (mod, modulation_vlc, &n, sizeof (mod), modcmp);<br>     if (p != NULL)<br>     {</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>