zsh-workers
 help / color / mirror / code / Atom feed
* fdtable
@ 1996-05-07  8:17 Peter Stephenson
  1996-05-07 11:19 ` fdtable Zefram
  1996-05-07 14:52 ` fdtable Peter Stephenson
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Stephenson @ 1996-05-07  8:17 UTC (permalink / raw)
  To: Zsh hackers list

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@ifh.de>       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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-05-08 16:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-07  8:17 fdtable Peter Stephenson
1996-05-07 11:19 ` fdtable Zefram
1996-05-07 14:12   ` fdtable Peter Stephenson
1996-05-07 14:52 ` fdtable Peter Stephenson
1996-05-07 15:45   ` fdtable Zoltan Hidvegi
1996-05-08  7:54   ` Macros (Was: fdtable) Bas V. de Bakker
1996-05-08 15:05     ` Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).