diff options
author | Sijmen J. Mulder <ik@sjmulder.nl> | 2023-08-10 13:22:12 +0200 |
---|---|---|
committer | Sijmen J. Mulder <ik@sjmulder.nl> | 2023-08-10 13:37:11 +0200 |
commit | 8f4db39514be558da3a1dcd65a2f6ab05d979e56 (patch) | |
tree | 7a5012392e6889e90b6f658dd296d155bc000072 | |
parent | fca17ce76335d58a381392d170356f7c1fb42764 (diff) |
Address 'misleading indentation' warning
$ uname -a
OpenBSD openbsd.joosts-fw13 7.3 GENERIC.MP#1125 amd64
$ cc --version
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.3
Thread model: posix
InstalledDir: /usr/bin
lex.c:270:25: warning: misleading indentation; statement is not part of the previous 'while' [-Wmisleading-indentation]
if (isalpha(*p) || *p == '_') {
^
lex.c:268:21: note: previous statement is here
while (isdigit(*++p))
^
-rw-r--r-- | src/lex.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -267,11 +267,11 @@ int yylex() { } else if (*p == 'e' || *p == 'E') { while (isdigit(*++p)) ; - if (isalpha(*p) || *p == '_') { - linelim = p - line; - return (yylex()); - } else - ret = FNUMBER; + if (isalpha(*p) || *p == '_') { + linelim = p - line; + return (yylex()); + } else + ret = FNUMBER; } else if (isalpha(*p) || *p == '_') { linelim = p - line; return (yylex()); |