Jacek Caban : include: Avoid narrowing conversions in struct initializers.
Alexandre Julliard
julliard at winehq.org
Tue Jan 8 17:46:48 CST 2019
Module: wine
Branch: master
Commit: f976fb53adf9d45ac5cdeb839abe25722661f3dc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f976fb53adf9d45ac5cdeb839abe25722661f3dc
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jan 8 19:45:24 2019 +0100
include: Avoid narrowing conversions in struct initializers.
Fixes using the header from C++.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 fb0d6bb..07ac88d 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
More information about the wine-cvs
mailing list