httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Robert S. Thau)
Subject Re: WWW Form Bug Report: "problems compiling on Alpha OSF1" on OSF/1
Date Tue, 19 Dec 1995 16:10:23 GMT
  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.


View raw message