1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[dom] cast

This commit is contained in:
Witold Filipczyk 2022-10-06 17:32:18 +02:00
parent 0b8230863d
commit c2e3d8fa8a

View File

@ -131,9 +131,11 @@ init_dom_scanner_info(struct dom_scanner_info *scanner_info)
const struct dom_string *data = &info[i].data;
if (info[i].type == DOM_SCAN_RANGE) {
int index = *data->string;
int index = (unsigned char)*data->string;
assert(index > 0);
assert(data->length < DOM_SCAN_TABLE_SIZE);
assert(index <= data->length);
for (; index <= data->length; index++)
scan_table[index] |= info[i].bits;