From 97e7593785e4be972383d8018e33af7d3dd409b9 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 27 Jun 2017 23:37:47 +0200 Subject: win32/poll: avoid assumption that pointers are equivalent to longs This is a companion patch to 4319368c6 (Use gnulib poll, importing the version from git, 2012-03-30) (Git's implementation of IsConsoleHandle() was adjusted in the meantime). Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- win32/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/poll.c b/win32/poll.c index 403eaa7a3..935b92423 100644 --- a/win32/poll.c +++ b/win32/poll.c @@ -72,7 +72,7 @@ #ifdef WIN32_NATIVE -#define IsConsoleHandle(h) (((long) (h) & 3) == 3) +#define IsConsoleHandle(h) (((intptr_t) (h) & 3) == 3) static BOOL IsSocketHandle (HANDLE h) -- cgit v1.2.3-55-g6feb