Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Sep 22, 2024
1 parent 58ad7d4 commit d4e7de3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ match_number(TSLexer *lexer, const bool *valid)
// and we have not elected to be bug-for-bug compatible.
int c = lexer->lookahead;
int next;
int prev;
bool is_hex = false;
bool is_bin = false;
bool has_digit = false;
Expand Down Expand Up @@ -320,7 +319,6 @@ match_number(TSLexer *lexer, const bool *valid)

bool done = false;
while (((next = lexer->lookahead) != 0) && (!done)) {
prev = c;
c = next;
if ((c > 0x7f) || iswspace(c) || (c == ';')) {
// optimization: not a valid number, that ends the
Expand Down

0 comments on commit d4e7de3

Please sign in to comment.