Skip to content

Commit

Permalink
lib: Comment seq_range_array_invert() that its values must be within …
Browse files Browse the repository at this point in the history
…min_seq..max_seq
  • Loading branch information
sirainen committed Dec 8, 2016
1 parent b7a0844 commit 27128a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/seq-range-array.h
Expand Up @@ -57,7 +57,9 @@ bool seq_range_array_have_common(const ARRAY_TYPE(seq_range) *array1,
/* Return number of sequences in the range. */
unsigned int seq_range_count(const ARRAY_TYPE(seq_range) *array) ATTR_PURE;

/* Invert the sequence range. For example 5:6 -> min_seq:4,7:max_seq. */
/* Invert the sequence range. For example 5:6 -> min_seq:4,7:max_seq.
The array must not have any sequences outside min_seq..max_seq or this
function will assert-crash. */
void seq_range_array_invert(ARRAY_TYPE(seq_range) *array,
uint32_t min_seq, uint32_t max_seq);

Expand Down

0 comments on commit 27128a3

Please sign in to comment.