[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: math-emu on buildd machine?

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.


Reply to: