mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Make binary_search signature more generic.
This commit is contained in:
@@ -112,7 +112,7 @@ u32 CanonicalCode::read_symbol(InputBitStream& stream) const
|
||||
|
||||
// FIXME: This seems really inefficient, this could be an index into an array instead.
|
||||
size_t index;
|
||||
if (AK::binary_search(m_symbol_codes.span(), code_bits, AK::integral_compare<u32>, &index))
|
||||
if (AK::binary_search(m_symbol_codes.span(), code_bits, &index))
|
||||
return m_symbol_values[index];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user