From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f4c619a88791a415 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1450f6,f4c619a88791a415 X-Google-Attributes: gid1450f6,public From: peltz@jaka.ece.uiuc.edu (Steve Peltz) Subject: Re: Bug in OSF1.32 C compiler on alpha Date: 1996/07/01 Message-ID: <4r9jsg$p3h@vixen.cso.uiuc.edu>#1/1 X-Deja-AN: 163172589 references: <4r965l$inj@news.psc.edu> organization: I need to put my ORGANIZATION here. newsgroups: comp.sys.dec,cmu.comp.sys.dec.alpha In article <4r965l$inj@news.psc.edu>, Nigel Goddard wrote: >static void F(x) > float x; >{ > (void) printf("%f\n", x); > G(&x); >} The "float" you have there is really a double, according to the promotion rules. So you're passing a pointer to a double to a function which expects a pointer to a float. Try adding the following line: printf("%d %d %d\n", sizeof x, sizeof(float), sizeof(double)); It shows 8 4 8.