projects
/
nethack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a4193a
)
Fixed compiler warhing of casting int to pointer.
author
Bart House
<bart@barthouse.com>
Sat, 2 Sep 2017 19:09:18 +0000
(12:09 -0700)
committer
Pasi Kallinen
<paxed@alt.org>
Mon, 4 Sep 2017 09:41:53 +0000
(12:41 +0300)
win/win32/winMS.h
patch
|
blob
|
history
diff --git
a/win/win32/winMS.h
b/win/win32/winMS.h
index f35e601c94cc5bb710a56d3f6bc923ce3e80e40d..4160f93d821a6b990239d5ddbb35d044173121f8 100644
(file)
--- 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())