Alexandre Julliard : include: Add cast to avoid a compiler warning on MSVC.

Alexandre Julliard julliard at winehq.org
Thu Apr 11 13:10:30 CDT 2019


Module: wine
Branch: master
Commit: d97d922afd5215327aa3613fae07c977a5ef4f11
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d97d922afd5215327aa3613fae07c977a5ef4f11

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 11 09:18:46 2019 +0200

include: Add cast to avoid a compiler warning on MSVC.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46991
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 6a981d6..aa4dc0d 100644
--- a/include/wine/debug.h
+++ b/include/wine/debug.h
@@ -290,7 +290,7 @@ static inline const char *wine_dbgstr_wn( const WCHAR *str, int n )
                 *dst++ = hex[(c >> 4) & 0x0f];
                 *dst++ = hex[c & 0x0f];
             }
-            else *dst++ = c;
+            else *dst++ = (char)c;
         }
     }
     *dst++ = '"';




More information about the wine-cvs mailing list