mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 09:44:10 +00:00
include: Avoid narrowing warning in wine_dbgstr_fourcc.
This commit is contained in:
parent
21e91690b1
commit
bc7e51b48c
|
@ -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] ))
|
||||
|
|
Loading…
Reference in a new issue