Fossil SCM

Coding style adjustments.

mistachkin 2014-06-30 19:07 UTC 16-digit-event-ids
Commit b6f137a01ebda84d0af6acf4f8d695fbe1aa4b80
1 file changed +3 -1
+3 -1
--- src/printf.c
+++ src/printf.c
@@ -619,11 +619,13 @@
619619
bufpt = "";
620620
}else if( xtype==etDYNSTRING ){
621621
zExtra = bufpt;
622622
}else if( xtype==etSTRINGID ){
623623
precision = 0;
624
- while( fossil_isdigit(bufpt[precision++]) ){};
624
+ while( bufpt[precision]>='0' && bufpt[precision]<='9' ){
625
+ precision++;
626
+ }
625627
if( precision<10 ) precision=10;
626628
}
627629
length = StrNLen32(bufpt, limit);
628630
if( precision>=0 && precision<length ) length = precision;
629631
break;
630632
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button