[PRISM] Fix up compile warning for sign comparison

This commit is contained in:
Kevin Newton 2024-09-03 13:16:24 -04:00
Родитель f7b097dea0
Коммит 767d0a1716
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 0EAD74C79EC73F26
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -10405,7 +10405,7 @@ pm_parse_process(pm_parse_result_t *result, pm_node_t *node, VALUE *script_lines
for (size_t index = 0; index < parser->newline_list.size; index++) {
size_t offset = parser->newline_list.offsets[index];
size_t length = index == parser->newline_list.size - 1 ? (parser->end - (parser->start + offset)) : (parser->newline_list.offsets[index + 1] - offset);
size_t length = index == parser->newline_list.size - 1 ? ((size_t) (parser->end - (parser->start + offset))) : (parser->newline_list.offsets[index + 1] - offset);
rb_ary_push(*script_lines, rb_enc_str_new((const char *) parser->start + offset, length, scope_node->encoding));
}