Received: by taz.hyperreal.com (8.6.12/8.6.5) id KAA14239; Tue, 19 Dec 1995 10:07:47 -0800 Received: from skiddaw.elsevier.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id KAA14228; Tue, 19 Dec 1995 10:07:39 -0800 Received: from snowdon.elsevier.co.uk (snowdon.elsevier.co.uk [193.131.197.164]) by skiddaw.elsevier.co.uk (8.6.12/8.6.12) with ESMTP id SAA03954 for ; Tue, 19 Dec 1995 18:05:53 GMT Received: from cadair.elsevier.co.uk (actually host cadair) by snowdon with SMTP (PP); Tue, 19 Dec 1995 18:06:23 +0000 Received: (from dpr@localhost) by cadair.elsevier.co.uk (8.6.12/8.6.12) id SAA09553 for new-httpd@hyperreal.com; Tue, 19 Dec 1995 18:06:04 GMT From: Paul Richards Message-Id: <199512191806.SAA09553@cadair.elsevier.co.uk> Subject: Re: WWW Form Bug Report: "problems compiling on Alpha OSF1" on OSF/1 To: new-httpd@hyperreal.com Date: Tue, 19 Dec 1995 18:06:04 +0000 (GMT) In-Reply-To: <199512191610.LAA25707@volterra.ai.mit.edu> from "Robert S. Thau" at Dec 19, 95 11:10:23 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 953 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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. Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk Phone: 0370 462071 (Mobile), +44 1225 447500 (work)