bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gawk number to string bug


From: Andrew J. Schorr
Subject: Re: gawk number to string bug
Date: Tue, 20 Dec 2005 09:49:07 -0500
User-agent: Mutt/1.4.1i

Anyway, the attached patch seems to fix the problem on 32-bit x86
and 64-bit x86 platforms.  I know the patch is flawed for the
same reasons my other patch is flawed.  But here it is nonetheless, perhaps
it is useful as a starting point.

With this patch, I now see:

   $ ./gawk --lint 'BEGIN { x=2^64; printf "2^%d= %s %d %g\n",64,x,x,x}'
   gawk: warning: [s]printf: value 1.84467e+19 is out of range for `%d' format
   2^64= 1.84467e+19 1.84467e+19 1.84467e+19

Regards,
Andy

Attachment: builtin.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]