diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/bc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index a271a2040..5938e54ab 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -2790,9 +2790,13 @@ static void bc_lex_lineComment(BcLex *l) | |||
2790 | 2790 | ||
2791 | static void bc_lex_whitespace(BcLex *l) | 2791 | static void bc_lex_whitespace(BcLex *l) |
2792 | { | 2792 | { |
2793 | char c; | ||
2794 | l->t.t = BC_LEX_WHITESPACE; | 2793 | l->t.t = BC_LEX_WHITESPACE; |
2795 | for (c = l->buf[l->i]; c != '\n' && isspace(c); c = l->buf[++l->i]); | 2794 | for (;;) { |
2795 | char c = l->buf[l->i]; | ||
2796 | if (c == '\n' || !isspace(c)) | ||
2797 | break; | ||
2798 | l->i++; | ||
2799 | } | ||
2796 | } | 2800 | } |
2797 | 2801 | ||
2798 | static BC_STATUS zbc_lex_number(BcLex *l, char start) | 2802 | static BC_STATUS zbc_lex_number(BcLex *l, char start) |