Fossil SCM

Fix a cast on 64-bit windows. Ticket [6585b6c5d9058212ceb].

drh 2011-01-14 17:00 trunk
Commit 3c62ea139ab9792dc4b3b263906d51852e20705e
1 file changed +2 -2
+2 -2
--- src/popen.c
+++ src/popen.c
@@ -116,12 +116,12 @@
116116
SetHandleInformation( hStdinWr, HANDLE_FLAG_INHERIT, FALSE);
117117
118118
win32_create_child_process((char*)zCmd,
119119
hStdinRd, hStdoutWr, hStderr,&childPid);
120120
*pChildPid = childPid;
121
- *pfdIn = _open_osfhandle((long)hStdoutRd, 0);
122
- fd = _open_osfhandle((long)hStdinWr, 0);
121
+ *pfdIn = _open_osfhandle((intptr_t)hStdoutRd, 0);
122
+ fd = _open_osfhandle((intptr_t)hStdinWr, 0);
123123
*ppOut = _fdopen(fd, "w");
124124
CloseHandle(hStdinRd);
125125
CloseHandle(hStdoutWr);
126126
return 0;
127127
#else
128128
--- src/popen.c
+++ src/popen.c
@@ -116,12 +116,12 @@
116 SetHandleInformation( hStdinWr, HANDLE_FLAG_INHERIT, FALSE);
117
118 win32_create_child_process((char*)zCmd,
119 hStdinRd, hStdoutWr, hStderr,&childPid);
120 *pChildPid = childPid;
121 *pfdIn = _open_osfhandle((long)hStdoutRd, 0);
122 fd = _open_osfhandle((long)hStdinWr, 0);
123 *ppOut = _fdopen(fd, "w");
124 CloseHandle(hStdinRd);
125 CloseHandle(hStdoutWr);
126 return 0;
127 #else
128
--- src/popen.c
+++ src/popen.c
@@ -116,12 +116,12 @@
116 SetHandleInformation( hStdinWr, HANDLE_FLAG_INHERIT, FALSE);
117
118 win32_create_child_process((char*)zCmd,
119 hStdinRd, hStdoutWr, hStderr,&childPid);
120 *pChildPid = childPid;
121 *pfdIn = _open_osfhandle((intptr_t)hStdoutRd, 0);
122 fd = _open_osfhandle((intptr_t)hStdinWr, 0);
123 *ppOut = _fdopen(fd, "w");
124 CloseHandle(hStdinRd);
125 CloseHandle(hStdoutWr);
126 return 0;
127 #else
128

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button