commit | 88c25301fa61f3b74e45a24531d4c6f2673a49bf | [log] [tgz] |
---|---|---|
author | Gavin Howard <yzena.tech@gmail.com> | Wed Oct 17 13:32:23 2018 -0600 |
committer | Gavin Howard <yzena.tech@gmail.com> | Wed Oct 17 13:32:23 2018 -0600 |
tree | ad018161e99547571caf8a30dcea79d4f5f4625a | |
parent | cd3060d35c100c06d2401eb948bb90111b90090a [diff] [blame] |
Reduce LOC
diff --git a/src/lex.c b/src/lex.c index 878b075..5d0fa52 100644 --- a/src/lex.c +++ b/src/lex.c
@@ -98,13 +98,11 @@ BcStatus bc_lex_name(BcLex *l) { BcStatus s; - size_t i; - char c; + size_t i = 0; const char *buf = l->buffer + l->idx - 1; + char c = buf[i]; l->t.t = BC_LEX_NAME; - i = 0; - c = buf[i]; while ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_') c = buf[++i];