-LRN: fix a warning
authorChristian Grothoff <christian@grothoff.org>
Sun, 3 Jun 2012 13:21:02 +0000 (13:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 3 Jun 2012 13:21:02 +0000 (13:21 +0000)
src/util/disk.c

index cba0d4467ba4731c06a4644f85c79aaec7143506..c899358e5ba6df3f2f82ba92c514c019cb6fc011 100644 (file)
@@ -2250,11 +2250,11 @@ GNUNET_DISK_pipe_from_fd (int blocking_read, int blocking_write, int fd[2])
   }
 #else
   if (fd[0] >= 0)
-    p->fd[0]->h = _get_osfhandle (fd[0]);
+    p->fd[0]->h = (HANDLE) _get_osfhandle (fd[0]);
   else
     p->fd[0]->h = INVALID_HANDLE_VALUE;
   if (fd[1] >= 0)
-    p->fd[1]->h = _get_osfhandle (fd[1]);
+    p->fd[1]->h = (HANDLE) _get_osfhandle (fd[1]);
   else
     p->fd[1]->h = INVALID_HANDLE_VALUE;