On Jan 14, 2008, at 02:12, Steve Langasek wrote:
On Mon, Jan 14, 2008 at 07:41:11AM +0100, Paolo Bonzini wrote:
int g(float z)
{
  printf ("%g\n", z);
}

Well, AFAICS this is an error; %g refers to a double, and you're passing a
float, so that output would be undefined.

Default argument promotions should be converting it to double for the printf call.

Ken


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to