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

Alexandre Julliard julliard at winehq.org
Mon Apr 15 16:26:41 CDT 2019


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

Author: Mathew Hodson <mathew.hodson at gmail.com>
Date:   Fri Apr 12 22:13:25 2019 -0400

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

Signed-off-by: Mathew Hodson <mathew.hodson at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/test.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/wine/test.h b/include/wine/test.h
index 22ba7e8..0797204 100644
--- a/include/wine/test.h
+++ b/include/wine/test.h
@@ -511,7 +511,7 @@ const char *wine_dbgstr_wn( const WCHAR *str, int n )
         case '\\': *dst++ = '\\'; *dst++ = '\\'; break;
         default:
             if (c >= ' ' && c <= 126)
-                *dst++ = c;
+                *dst++ = (char)c;
             else
             {
                 *dst++ = '\\';




More information about the wine-cvs mailing list