From: Bruno Haible Date: Fri, 26 Sep 2008 13:12:55 +0000 (+0200) Subject: Cast the _get_osfhandle result, to avoid a warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d3276c5f05a617488ba3b4b2086d1b5ae38ca34;p=pspp Cast the _get_osfhandle result, to avoid a warning. --- diff --git a/lib/stdio-write.c b/lib/stdio-write.c index 1bd1be29eb..f1d0fcb730 100644 --- a/lib/stdio-write.c +++ b/lib/stdio-write.c @@ -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); \