httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <>
Subject Re: WWW Form Bug Report: "problems compiling on Alpha OSF1" on OSF/1
Date Tue, 19 Dec 1995 18:06:04 GMT
In reply to Robert S. Thau who said
>   I thing the standard says
>   something like, casting a pointer to an int is ok *if* the int is large
>   enough and casting back from an int will give you the original pointer
>   if the int was big enough in the first place.
> But that's not what's going on in the code you quoted, which casts a
> *small* integer *to a pointer and back* --- the assumption here is that
> a pointer has enough bits to represent an int.  There may be machines
> which violate this assumption, but if so, they'll have a very hard time
> running X (Xt parameter blocks have this sort of thing all over the
> place).  Sheesh.

I've never browsed X sources so what you say may be correct, that
doesn't make the code any less wrong. There's lots of bad C out there.

  Paul Richards. Originative Solutions Ltd.
  Phone: 0370 462071 (Mobile), +44 1225 447500 (work)

View raw message