summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-10-23 10:56:09 +0200
committerTyge Løvset <[email protected]>2020-10-23 10:56:09 +0200
commitcdee6df70910b53b4a021daba334689bc3d05b4a (patch)
tree4be35cec03fcecf20d9d745a9ef0889c4b6028db
parentef97bc0768cfc409fc361d43a8fcfcf9feb60a9e (diff)
downloadSTC-modified-cdee6df70910b53b4a021daba334689bc3d05b4a.tar.gz
STC-modified-cdee6df70910b53b4a021daba334689bc3d05b4a.zip
Fix/reverted to use continue in parser.
-rw-r--r--stc/cfmt.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/stc/cfmt.h b/stc/cfmt.h
index 843e1b12..aefd4130 100644
--- a/stc/cfmt.h
+++ b/stc/cfmt.h
@@ -173,8 +173,7 @@ _cfmt_conv(int nargs, const char *fmt, ...) {
++fmt;
while (*f) *p++ = *f++;
}
- ch = *fmt;
- break;
+ continue;
case '}':
if (fmt[1] == '}') ++fmt;
break;
@@ -192,8 +191,7 @@ _cfmt_conv(int nargs, const char *fmt, ...) {
if (!strchr("csdioxXufFeEaAgGnp", fmt[-1]))
while (*f) *p++ = *f++;
fmt += (*fmt == '}');
- ch = *fmt;
- break;
+ continue;
}
break;
}