type cast in initializer

Ed Nather nather at utastro.UUCP
Wed Feb 12 00:50:12 AEST 1986


In article <792 at brl-smoke.ARPA>, gwyn at brl-smoke.ARPA (Doug Gwyn ) writes:

> C note of the day: 'x' is of type (int), not (char).

*sigh*  -- thanks, Doug.  I just found that out yesterday, the hard way.
The values of '\377' and -1 are one and the same without a type cast.
Now, if I'd just read the news, instead of debugging ...
-- 
Ed Nather
Astronomy Dept, U of Texas @ Austin
{allegra,ihnp4}!{noao,ut-sally}!utastro!nather
nather at astro.UTEXAS.EDU



More information about the Comp.lang.c mailing list