Changed types

This commit is contained in:
Maix0 2024-07-03 20:10:38 +02:00
parent d609da4e96
commit 634a8762f1
19 changed files with 144 additions and 144 deletions

View file

@ -95,7 +95,7 @@ static void ts_lexer_goto(Lexer *self, Length position)
// Move to the first valid position at or after the given position.
bool found_included_range = false;
for (unsigned i = 0; i < self->included_range_count; i++)
for (t_u32 i = 0; i < self->included_range_count; i++)
{
TSRange *included_range = &self->included_ranges[i];
if (included_range->end_byte > self->current_position.bytes && included_range->end_byte > included_range->start_byte)
@ -416,7 +416,7 @@ bool ts_lexer_set_included_ranges(Lexer *self, const TSRange *ranges, t_u32 coun
else
{
t_u32 previous_byte = 0;
for (unsigned i = 0; i < count; i++)
for (t_u32 i = 0; i < count; i++)
{
const TSRange *range = &ranges[i];
if (range->start_byte < previous_byte || range->end_byte < range->start_byte)