Module: wine Branch: master Commit: bc7e51b48c9919cbb71a8bc0a7cb821c1dcbb5ec URL: https://gitlab.winehq.org/wine/wine/-/commit/bc7e51b48c9919cbb71a8bc0a7cb821...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Oct 9 15:57:36 2023 +0200
include: Avoid narrowing warning in wine_dbgstr_fourcc.
---
include/wine/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/wine/debug.h b/include/wine/debug.h index d1d751a2d8a..d0862942be8 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -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] ))