Commit 5a6f6c9e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Try to fix a compiler warning

parent bdf786c9
......@@ -117,7 +117,7 @@ char *vlc_strndup( const char *string, size_t n )
size_t vlc_strnlen( const char *psz, size_t n )
{
const char *psz_end = memchr( psz, 0, n );
return psz_end ? ( psz_end - psz ) : n;
return psz_end ? (size_t)( psz_end - psz ) : n;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment