diff liboctave/system/lo-sysdep.cc @ 16314:0723ea02dcdb

use intptr_t instead of long * lo-sysdep.cc (octave_popen2) Use intptr_t instead of long. * kpse.cc (KPSE_DEBUG_FOPEN): Likewise.
author John W. Eaton <jwe@octave.org>
date Fri, 15 Mar 2013 04:14:09 -0400 (2013-03-15)
parents 648dabbb4c6b
children 0696dcc92fc8
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc
+++ b/liboctave/system/lo-sysdep.cc
@@ -114,8 +114,8 @@
       pipeMode = PIPE_NOWAIT;
       SetNamedPipeHandleState (parentRead, &pipeMode, 0, 0);
     }
-  fildes[1] = _open_osfhandle (reinterpret_cast<long> (parentRead), _O_RDONLY | _O_BINARY);
-  fildes[0] = _open_osfhandle (reinterpret_cast<long> (parentWrite), _O_WRONLY | _O_BINARY);
+  fildes[1] = _open_osfhandle (reinterpret_cast<intptr_t> (parentRead), _O_RDONLY | _O_BINARY);
+  fildes[0] = _open_osfhandle (reinterpret_cast<intptr_t> (parentWrite), _O_WRONLY | _O_BINARY);
   si.dwFlags |= STARTF_USESTDHANDLES;
   si.hStdInput = childRead;
   si.hStdOutput = childWrite;