4.2 cc/lint strangeness (pcc)
darryl at ISM780.UUCP
darryl at ISM780.UUCP
Sun Mar 17 15:40:01 AEST 1985
[]
Pcc has a bug regarding constant expressions containing casts. This was
recently brought up in net.lang.c regarding an expression to get a mask with
the high order bit on using
unsigned int mask=~(~((unsigned)0)>>1);
The VAX System III pcc will choke on this, and there were other versions
of pcc indited as well.
--Darryl Richman, INTERACTIVE Systems Inc.
...!cca!ima!ism780!darryl
The views expressed above are my opinions only.
More information about the Comp.unix.wizards
mailing list