From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20191 invoked from network); 3 Feb 1999 22:54:49 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Feb 1999 22:54:49 -0000 Received: from voicenet.com (mail12.voicenet.com [207.103.0.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id RAA10182 for ; Wed, 3 Feb 1999 17:47:33 -0500 Received: (qmail 15336 invoked from network); 3 Feb 1999 22:47:26 -0000 Received: from rotary917-pri.voicenet.com (HELO voicenet.com) (209.71.52.17) by mail12.voicenet.com with SMTP; 3 Feb 1999 22:47:26 -0000 Sender: gat@mail.redhat.com Message-ID: <36B8CF6A.D373F882@voicenet.com> Date: Wed, 03 Feb 1999 17:36:26 -0500 From: Uncle George Organization: none X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: axp-list@redhat.com CC: Dan Schmitt Subject: So Y is my pointer so bogus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This little example caused a (un-expected ) pointer failure in one of the font routines in my java 1.2 port on linux/alpha. It was expected to add a -1760 ( -1760 * sizeof(int)) but does not. Ugg. what is a 64bitter to do. gat main() { int x1,x2,x3; int y1,y2,y3; unsigned int P; unsigned int S; void *a; a = (void *)0; x1=20,x2=0,x3=0; y1=5, y2=0,y3=0; P = 1; S = 348; a = (int *)a +(x2-x1-x3)*P + (y2-y1-y3)*S; printf("a = %p\n",a); }