Skip to content
Snippets Groups Projects
Commit 16b1e02b authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

add an assertion to h_seq_index

parent aa295f15
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ HParsedToken *h_carray_index(const HCountedArray *a, size_t i)
HParsedToken *h_seq_index(const HParsedToken *p, size_t i)
{
assert(p != NULL);
assert(p->token_type == TT_SEQUENCE);
return h_carray_index(p->seq, i);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment