mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-22 03:46:07 +08:00
Fixed compile error in 'first_clear_bit_position'
This commit is contained in:
parent
64860d86f1
commit
0ba97b9416
@ -755,7 +755,7 @@ namespace etl
|
||||
template <typename T>
|
||||
uint_least8_t first_clear_bit_position(T value)
|
||||
{
|
||||
value ~= value;
|
||||
value = ~value;
|
||||
return count_trailing_zeros(value);
|
||||
}
|
||||
|
||||
@ -768,7 +768,7 @@ namespace etl
|
||||
{
|
||||
if (!state)
|
||||
{
|
||||
value ~= value;
|
||||
value = ~value;
|
||||
}
|
||||
|
||||
return count_trailing_zeros(value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user