From 4d3276c5f05a617488ba3b4b2086d1b5ae38ca34 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 Sep 2008 15:12:55 +0200 Subject: [PATCH] Cast the _get_osfhandle result, to avoid a warning. --- lib/stdio-write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); \ -- 2.30.2