]> git.pld-linux.org Git - packages/gawk.git/blob - gawk-zero_flag.patch
- added pmake.patch
[packages/gawk.git] / gawk-zero_flag.patch
1 --- builtin.c
2 +++ builtin.c   1999/09/27 16:04:29
3 @@ -460,7 +460,13 @@
4                         break;
5  
6                 case '0':
7 -                       zero_flag = TRUE;
8 +                       /*
9 +                        * Only turn on zero_flag if we haven't seen
10 +                        * the field width or precision yet.  Otherwise,
11 +                        * screws up floating point formatting.
12 +                        */
13 +                       if (cur == & fw && fw == 0)
14 +                               zero_flag = TRUE;
15                         if (lj)
16                                 goto retry;
17                         /* FALL through */
This page took 0.039666 seconds and 3 git commands to generate.