Mercurial > hg > xemacs-beta
diff src/process-unix.c @ 4031:0cc7794d231e
[xemacs-hg @ 2007-06-22 17:50:36 by stephent]
More 64-bit fiddling (suppress warnings). <87r6o350q9.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Fri, 22 Jun 2007 17:50:42 +0000 |
parents | 4c41ea11201a |
children | 5333f383efbd |
line wrap: on
line diff
--- a/src/process-unix.c Fri Jun 22 17:39:07 2007 +0000 +++ b/src/process-unix.c Fri Jun 22 17:50:42 2007 +0000 @@ -846,8 +846,9 @@ unix_init_process_io_handles (Lisp_Process *p, void *in, void *UNUSED (out), void *err, int UNUSED (flags)) { - UNIX_DATA(p)->infd = (int) in; - UNIX_DATA(p)->errfd = (int) err; + /* if sizeof(EMACS_INT) > sizeof(int) this truncates the value */ + UNIX_DATA(p)->infd = (EMACS_INT) in; + UNIX_DATA(p)->errfd = (EMACS_INT) err; } /* Move the file descriptor FD so that its number is not less than MIN. *