Fixed compiler warhing of casting int to pointer.
authorBart House <bart@barthouse.com>
Sat, 2 Sep 2017 19:09:18 +0000 (12:09 -0700)
committerPasi Kallinen <paxed@alt.org>
Mon, 4 Sep 2017 09:41:53 +0000 (12:41 +0300)
win/win32/winMS.h

index f35e601c94cc5bb710a56d3f6bc923ce3e80e40d..4160f93d821a6b990239d5ddbb35d044173121f8 100644 (file)
@@ -226,7 +226,7 @@ extern COLORREF status_fg_color;
 extern COLORREF message_bg_color;
 extern COLORREF message_fg_color;
 
-#define SYSCLR_TO_BRUSH(x) ((HBRUSH)((x) + 1))
+#define SYSCLR_TO_BRUSH(x) ((HBRUSH)(((intptr_t) x) + 1))
 
 /* unicode stuff */
 #define NH_CODEPAGE (SYMHANDLING(H_IBM) ? GetOEMCP() : GetACP())