summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSijmen J. Mulder <ik@sjmulder.nl>2023-08-10 13:22:12 +0200
committerSijmen J. Mulder <ik@sjmulder.nl>2023-08-10 13:37:11 +0200
commit8f4db39514be558da3a1dcd65a2f6ab05d979e56 (patch)
tree7a5012392e6889e90b6f658dd296d155bc000072
parentfca17ce76335d58a381392d170356f7c1fb42764 (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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lex.c b/src/lex.c
index 5ff8eda..2c09407 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -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());