mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
AK: Use default constructor of Optional if an unset bit is not found
This commit is contained in:
parent
4479e874da
commit
0433c0780d
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ public:
|
||||||
if (!get(j))
|
if (!get(j))
|
||||||
return j;
|
return j;
|
||||||
|
|
||||||
return -1;
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
Optional<size_t> find_longest_range_of_unset_bits(size_t max_length, size_t& found_range_size) const
|
Optional<size_t> find_longest_range_of_unset_bits(size_t max_length, size_t& found_range_size) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue