fix(lib): explicitly cast numbers to the same size in potential spots for infinite loops
This commit is contained in:
parent
1c65ca24bc
commit
753fa1c3ff
3 changed files with 10 additions and 10 deletions
|
|
@ -1328,7 +1328,7 @@ static void ts_parser__handle_error(
|
|||
TSStateId state = ts_stack_state(self->stack, v);
|
||||
for (
|
||||
TSSymbol missing_symbol = 1;
|
||||
missing_symbol < self->language->token_count;
|
||||
missing_symbol < (uint16_t)self->language->token_count;
|
||||
missing_symbol++
|
||||
) {
|
||||
TSStateId state_after_missing_symbol = ts_language_next_state(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue