]>
Commit | Line | Data |
---|---|---|
70c35294 | 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 */ |