Uninitialized externals and statics
Maarten Litmaath
maart at cs.vu.nl
Sat Aug 26 01:22:32 AEST 1989
kenny at m.cs.uiuc.edu writes:
\... Any compiler that doesn't
\promote pointers in comparisons with integers has a serious bug.
No, YOU have a serious bug!
foo *p;
if (p == 0)
means
if (<bit pattern of p> == <bit pattern of nil pointer of type foo *>)
and not
if (<integer promotion of p> == 0)
--
"rot H - dD/dt = J, div D = rho, div B = 0, |Maarten Litmaath @ VU Amsterdam:
rot E + dB/dt = 0" and there was 7-UP Light.|maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.lang.c
mailing list