diff src/event-unixoid.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 fffe735e63ee
children 2fd201d73a92
line wrap: on
line diff
--- a/src/event-unixoid.c	Fri Jun 22 17:39:07 2007 +0000
+++ b/src/event-unixoid.c	Fri Jun 22 17:50:42 2007 +0000
@@ -360,10 +360,11 @@
   int infd, outfd, errfd;
   /* Decode inhandle and outhandle. Their meaning depends on
      the process implementation being used. */
-  /* We are passed plain old file descs */
-  infd  = (int) inhandle;
-  outfd = (int) outhandle;
-  errfd = (int) errhandle;
+  /* We are passed plain old file descs, which are ints, so */
+  /* if sizeof(EMACS_INT) > sizeof(int) it's OK. */
+  infd  = (EMACS_INT) inhandle;
+  outfd = (EMACS_INT) outhandle;
+  errfd = (EMACS_INT) errhandle;
 
   *instream = (infd >= 0
 	       ? make_filedesc_input_stream (infd, 0, -1, 0)