Skip to content
Snippets Groups Projects
Commit fc80fd1f authored by ilor's avatar ilor
Browse files

fix Tagset::get_pos_mask with an invalid idx

parent 9eb66d70
Branches
No related merge requests found
......@@ -354,7 +354,11 @@ mask_t Tagset::get_pos_mask(const string_range& pos) const
mask_t Tagset::get_pos_mask(idx_t pos) const
{
return 1 << pos;
if (pos >= 0) {
return 1 << pos;
} else {
return 0;
}
}
idx_t Tagset::get_attribute_index(const string_range& a) const
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment