From cdee6df70910b53b4a021daba334689bc3d05b4a Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 23 Oct 2020 10:56:09 +0200 Subject: Fix/reverted to use continue in parser. --- stc/cfmt.h | 6 ++---- 1 file 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; } -- cgit v1.2.3