include: Avoid narrowing warning in wine_dbgstr_fourcc.

This commit is contained in:
Rémi Bernon 2023-10-09 15:57:36 +02:00 committed by Alexandre Julliard
parent 21e91690b1
commit bc7e51b48c

View file

@ -326,7 +326,7 @@ static inline const char *wine_dbgstr_guid( const GUID *id )
static inline const char *wine_dbgstr_fourcc( unsigned int fourcc )
{
char str[4] = { fourcc, fourcc >> 8, fourcc >> 16, fourcc >> 24 };
char str[4] = { (char)fourcc, (char)(fourcc >> 8), (char)(fourcc >> 16), (char)(fourcc >> 24) };
if (!fourcc)
return "''";
if (isprint( str[0] ) && isprint( str[1] ) && isprint( str[2] ) && isprint( str[3] ))