Fossil with Commonmark

Artifact [33a0e46b0f]
Login

Artifact 33a0e46b0f889c4dd85a867beb69505598456204:

Attachment "popen.patch" to ticket [6585b6c5d9] added by anonymous 2011-01-14 14:00:02.
Index: src/popen.c
===================================================================
--- src/popen.c
+++ src/popen.c
@@ -116,12 +116,12 @@
   SetHandleInformation( hStdinWr, HANDLE_FLAG_INHERIT, FALSE);
   
   win32_create_child_process((char*)zCmd, 
                              hStdinRd, hStdoutWr, hStderr,&childPid);
   *pChildPid = childPid;
-  *pfdIn = _open_osfhandle((long)hStdoutRd, 0);
-  fd = _open_osfhandle((long)hStdinWr, 0);
+  *pfdIn = _open_osfhandle((intptr_t)hStdoutRd, 0);
+  fd = _open_osfhandle((intptr_t)hStdinWr, 0);
   *ppOut = _fdopen(fd, "w");
   CloseHandle(hStdinRd); 
   CloseHandle(hStdoutWr);
   return 0;
 #else