OLD | NEW |
(Empty) | |
| 1 Index: g_fmt.cc |
| 2 =================================================================== |
| 3 --- g_fmt.cc (revision 49784) |
| 4 +++ g_fmt.cc (working copy) |
| 5 @@ -46,7 +46,7 @@ |
| 6 if (sign) |
| 7 *b++ = '-'; |
| 8 if (decpt == 9999) /* Infinity or Nan */ { |
| 9 - while((*b++ = *s++)); |
| 10 + while((*b++ = *s++)) {} |
| 11 goto done0; |
| 12 } |
| 13 if (decpt <= -4 || decpt > se - s + 5) { |
| 14 @@ -64,7 +64,7 @@ |
| 15 } |
| 16 else |
| 17 *b++ = '+'; |
| 18 - for(j = 2, k = 10; 10*k <= decpt; j++, k *= 10); |
| 19 + for(j = 2, k = 10; 10*k <= decpt; j++, k *= 10) {} |
| 20 for(;;) { |
| 21 i = decpt / k; |
| 22 *b++ = i + '0'; |
| 23 @@ -79,7 +79,7 @@ |
| 24 *b++ = '.'; |
| 25 for(; decpt < 0; decpt++) |
| 26 *b++ = '0'; |
| 27 - while((*b++ = *s++)); |
| 28 + while((*b++ = *s++)) {} |
| 29 } |
| 30 else { |
| 31 while((*b = *s++)) { |
| 32 Index: dtoa.cc |
| 33 =================================================================== |
| 34 --- dtoa.cc (revision 49784) |
| 35 +++ dtoa.cc (working copy) |
| 36 @@ -3863,7 +3863,7 @@ |
| 37 if (dval(&u) > 0.5 + dval(&eps)) |
| 38 goto bump_up; |
| 39 else if (dval(&u) < 0.5 - dval(&eps)) { |
| 40 - while(*--s == '0'); |
| 41 + while(*--s == '0') {} |
| 42 s++; |
| 43 goto ret1; |
| 44 } |
| 45 @@ -4176,7 +4176,7 @@ |
| 46 #ifdef Honor_FLT_ROUNDS |
| 47 trimzeros: |
| 48 #endif |
| 49 - while(*--s == '0'); |
| 50 + while(*--s == '0') {} |
| 51 s++; |
| 52 } |
| 53 ret: |
OLD | NEW |