mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[dom] cast
This commit is contained in:
parent
0b8230863d
commit
c2e3d8fa8a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user