mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[graph] More assert
This commit is contained in:
parent
3b386c3773
commit
7946984b96
1 changed files with 3 additions and 2 deletions
|
@ -280,8 +280,9 @@ struct graph_t
|
|||
new_parents.alloc (parents.get_population ());
|
||||
for (auto _ : parents)
|
||||
{
|
||||
assert (_.first < id_map.length);
|
||||
new_parents.set (id_map[_.first], _.second);
|
||||
assert (_.first < id_map.length);
|
||||
assert (!new_parents.has (id_map[_.first]));
|
||||
new_parents.set (id_map[_.first], _.second);
|
||||
}
|
||||
|
||||
if (!new_parents.in_error ())
|
||||
|
|
Loading…
Add table
Reference in a new issue