From: Bart House Date: Sat, 2 Sep 2017 19:09:18 +0000 (-0700) Subject: Fixed compiler warhing of casting int to pointer. X-Git-Tag: NetHack-3.6.1_RC01~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=497a0b47c8748c8dc08e8884635f73ad7669d1d6;p=nethack Fixed compiler warhing of casting int to pointer. --- diff --git a/win/win32/winMS.h b/win/win32/winMS.h index f35e601c9..4160f93d8 100644 --- a/win/win32/winMS.h +++ b/win/win32/winMS.h @@ -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())