Mercurial > hg > octave-nkf
changeset 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 |
parents | 6aafe87a3144 |
children | 62791b1f06cb |
files | liboctave/system/lo-sysdep.cc liboctave/util/kpse.cc |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
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;