fix(lib): explicitly cast numbers to the same size in potential spots for infinite loops

This commit is contained in:
Amaan Qureshi 2023-07-19 03:49:14 -04:00
parent 1c65ca24bc
commit 753fa1c3ff
No known key found for this signature in database
GPG key ID: E67890ADC4227273
3 changed files with 10 additions and 10 deletions

View file

@ -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(