From f976fb53adf9d45ac5cdeb839abe25722661f3dc Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 8 Jan 2019 19:45:24 +0100 Subject: [PATCH] include: Avoid narrowing conversions in struct initializers. Fixes using the header from C++. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- include/wine/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wine/debug.h b/include/wine/debug.h index fb0d6bb737d..07ac88d2647 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -360,9 +360,9 @@ static inline const char *wine_dbgstr_variant( const VARIANT *v ) #define WINE_ERR_ON(ch) __WINE_IS_DEBUG_ON(_ERR,&__wine_dbch_##ch) #define WINE_DECLARE_DEBUG_CHANNEL(ch) \ - static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch } + static struct __wine_debug_channel __wine_dbch_##ch = { 0xff, #ch } #define WINE_DEFAULT_DEBUG_CHANNEL(ch) \ - static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }; \ + static struct __wine_debug_channel __wine_dbch_##ch = { 0xff, #ch }; \ static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch #define WINE_DPRINTF wine_dbg_printf -- 2.11.4.GIT