]> Savannah Git Hosting - gnulib.git/commitdiff
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 db7263157d01d7d38b19d56b702a16f4b1f0e888..0af17b202e1b95542966fae724c2e01cce47554a 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;