fixes
This commit is contained in:
parent
a7754b05ba
commit
57a8f99a32
2 changed files with 4 additions and 2 deletions
|
@ -541,8 +541,10 @@ verify_sm_is_first_available_span(sparsemap_t *map, sparsemap_idx_t idx, size_t
|
|||
while (sparsemap_is_set(map, i + j) == value && j < len) {
|
||||
j++;
|
||||
}
|
||||
if (j == len) {
|
||||
return i == idx;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ void sparsemap_split(sparsemap_t *map, sparsemap_idx_t offset, sparsemap_t *othe
|
|||
* 3 when 0-based).
|
||||
*
|
||||
* @param[in] map The sparsemap reference.
|
||||
* @param[in] n Specifies how many bits to ignore (when n=3 return the position
|
||||
* @param[in] n Specifies how many bits to ignore (when n=2 return the position
|
||||
* of the third matching bit).
|
||||
* @param[in] value Determines if the search is to examine set (true) or unset
|
||||
* (false) bits in the bitmap index.
|
||||
|
|
Loading…
Reference in a new issue