msvc-nothrow: Avoid a compiler warning.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 00:17:33 +0000 (02:17 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 00:17:56 +0000 (02:17 +0200)
lib/msvc-nothrow.c

index db72631..0af17b2 100644 (file)
@@ -41,7 +41,7 @@ _gl_nothrow_get_osfhandle (int fd)
     }
   CATCH_MSVC_INVAL
     {
-      result = INVALID_HANDLE_VALUE;
+      result = (intptr_t) INVALID_HANDLE_VALUE;
     }
   DONE_MSVC_INVAL;