Fossil SCM
Coding style adjustments.
Commit
b6f137a01ebda84d0af6acf4f8d695fbe1aa4b80
Parent
734d4299401357a…
1 file changed
+3
-1
+3
-1
| --- src/printf.c | ||
| +++ src/printf.c | ||
| @@ -619,11 +619,13 @@ | ||
| 619 | 619 | bufpt = ""; |
| 620 | 620 | }else if( xtype==etDYNSTRING ){ |
| 621 | 621 | zExtra = bufpt; |
| 622 | 622 | }else if( xtype==etSTRINGID ){ |
| 623 | 623 | precision = 0; |
| 624 | - while( fossil_isdigit(bufpt[precision++]) ){}; | |
| 624 | + while( bufpt[precision]>='0' && bufpt[precision]<='9' ){ | |
| 625 | + precision++; | |
| 626 | + } | |
| 625 | 627 | if( precision<10 ) precision=10; |
| 626 | 628 | } |
| 627 | 629 | length = StrNLen32(bufpt, limit); |
| 628 | 630 | if( precision>=0 && precision<length ) length = precision; |
| 629 | 631 | break; |
| 630 | 632 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -619,11 +619,13 @@ | |
| 619 | bufpt = ""; |
| 620 | }else if( xtype==etDYNSTRING ){ |
| 621 | zExtra = bufpt; |
| 622 | }else if( xtype==etSTRINGID ){ |
| 623 | precision = 0; |
| 624 | while( fossil_isdigit(bufpt[precision++]) ){}; |
| 625 | if( precision<10 ) precision=10; |
| 626 | } |
| 627 | length = StrNLen32(bufpt, limit); |
| 628 | if( precision>=0 && precision<length ) length = precision; |
| 629 | break; |
| 630 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -619,11 +619,13 @@ | |
| 619 | bufpt = ""; |
| 620 | }else if( xtype==etDYNSTRING ){ |
| 621 | zExtra = bufpt; |
| 622 | }else if( xtype==etSTRINGID ){ |
| 623 | precision = 0; |
| 624 | while( bufpt[precision]>='0' && bufpt[precision]<='9' ){ |
| 625 | precision++; |
| 626 | } |
| 627 | if( precision<10 ) precision=10; |
| 628 | } |
| 629 | length = StrNLen32(bufpt, limit); |
| 630 | if( precision>=0 && precision<length ) length = precision; |
| 631 | break; |
| 632 |