Cast the _get_osfhandle result, to avoid a warning.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Sep 2008 13:12:55 +0000 (15:12 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Sep 2008 13:12:55 +0000 (15:12 +0200)
lib/stdio-write.c

index 1bd1be29ebfdc0a00f9e516c198d790c1f7ee66d..f1d0fcb730566c30b61714d872ae0d51a048afff 100644 (file)
@@ -49,7 +49,8 @@
       if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream))      \
        {                                                                     \
          int fd = fileno (stream);                                           \
-         if (fd >= 0 && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE) \
+         if (fd >= 0                                                         \
+             && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\
            {                                                                 \
              /* Try to raise signal SIGPIPE.  */                             \
              raise (SIGPIPE);                                                \