Subject: Re: Assming char == signed char - example ...
To: None <s.k.stevens@ic.ac.uk>
From: Andrew Cagney <cagney@highland.com.au>
List: tech-kern
Date: 06/20/1995 12:03:27
Excerpts from mail: 19-Jun-95 Assming char == signed char?
s.k.stevens@ic.ac.uk (1827)
> Any chance of telling us where your example came from ;-)
Perhaphs I should have written it `(char)(-1)'. Still going by the
ongoing exchange the below was close enough. Oh and I couldn't exactly
miss it, the compiler gave a warning ...
What are you going to do with the ones you found? I suspect that they
could be useful to others.
regards, Andrew
(Just don't mention the rugby^D^D^D^D^Dwar ... :-)
*** nbsd/sys/kern/SRC/tty_compat.c Tue Nov 22 09:45:50 1994
--- nbsd/sys/kern/tty_compat.c Sat Jun 17 00:09:33 1995
***************
*** 154,160 ****
cc[VSTOP] = tc->t_stopc;
cc[VEOF] = tc->t_eofc;
cc[VEOL] = tc->t_brkc;
! if (tc->t_brkc == -1)
cc[VEOL2] = _POSIX_VDISABLE;
break;
}
--- 154,160 ----
cc[VSTOP] = tc->t_stopc;
cc[VEOF] = tc->t_eofc;
cc[VEOL] = tc->t_brkc;
! if (tc->t_brkc == (char)-1)
cc[VEOL2] = _POSIX_VDISABLE;
break;
}