Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

fdtable



In 2.6-beta17, fdtable[] is a char array, and there are tests like

		    if (fdtable[i] < 0)
			fdtable[i]--;

for which gcc on IRIX is complaining about limited range of data type.
Shouldn't fdtable[] be `signed char'? (Yes.)

*** Src/globals.h.sc	Tue May  7 10:09:50 1996
--- Src/globals.h	Tue May  7 10:10:13 1996
***************
*** 397,403 ****
   * table is not used.  A table element is set by movefd and cleard *
   * by zclose.                                                      */
  
! EXTERN char fdtable[OPEN_MAX];
  
  /* input fd from the coprocess */
  
--- 397,403 ----
   * table is not used.  A table element is set by movefd and cleard *
   * by zclose.                                                      */
  
! EXTERN signed char fdtable[OPEN_MAX];
  
  /* input fd from the coprocess */
  
-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




Messages sorted by: Reverse Date, Date, Thread, Author