summaryrefslogtreecommitdiffstats
path: root/src/lex.c
diff options
context:
space:
mode:
authormongo <mongo@iomega>2017-02-09 16:13:07 -0300
committermongo <mongo@iomega>2017-02-09 16:13:07 -0300
commita9d70891ec3d901b474f524a2588301596dae747 (patch)
tree151dd5fd49038051d340fdfc91d2e7290e5bcdff /src/lex.c
parent446bee55552ad027cce1b722dca85262150d744a (diff)
Avoid 'while loop has empty body warning'
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lex.c b/src/lex.c
index ee28b01..200cd0a 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -207,7 +207,8 @@ int yylex() {
yylval.ival = (int)v;
dateflag = 2;
} else if (*p == 'e' || *p == 'E') {
- while (isdigit(*++p)) /* */;
+ while (isdigit(*++p))
+ ;
if (isalpha(*p) || *p == '_') {
linelim = p - line;
return (yylex());