+2012-01-28 Marc-André Lureau <marcandre.lureau@redhat.com> (tiny change)
+
+ select, poll, isatty: Avoid warnings on x86_64 mingw64.
+ * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
+ pointer to an integer.
+ * lib/poll.c (IsConsoleHandle): Likewise.
+ * lib/isatty.c (IsConsoleHandle): Likewise.
+
2012-01-28 Jim Meyering <meyering@redhat.com>
doc: clarify README-release
/* Optimized test whether a HANDLE refers to a console.
See <http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00065.html>. */
-#define IsConsoleHandle(h) (((long) (h) & 3) == 3)
+#define IsConsoleHandle(h) (((intptr_t) (h) & 3) == 3)
#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
static inline int
/* Optimized test whether a HANDLE refers to a console.
See <http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00065.html>. */
-#define IsConsoleHandle(h) (((long) (h) & 3) == 3)
+#define IsConsoleHandle(h) (((intptr_t) (h) & 3) == 3)
static BOOL
IsSocketHandle (HANDLE h)
/* Optimized test whether a HANDLE refers to a console.
See <http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00065.html>. */
-#define IsConsoleHandle(h) (((long) (h) & 3) == 3)
+#define IsConsoleHandle(h) (((intptr_t) (h) & 3) == 3)
static BOOL
IsSocketHandle (HANDLE h)