mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 08:24:08 +01:00
ircd::db: Use actual gt operator for reverse integer less.
This commit is contained in:
parent
03e8107b7b
commit
e764747e17
1 changed files with 5 additions and 4 deletions
|
@ -105,14 +105,15 @@ template<class T>
|
||||||
struct ircd::db::reverse_cmp_integer
|
struct ircd::db::reverse_cmp_integer
|
||||||
:db::comparator
|
:db::comparator
|
||||||
{
|
{
|
||||||
static bool less(const string_view &a, const string_view &b)
|
static bool less(const string_view &sa, const string_view &sb)
|
||||||
{
|
{
|
||||||
return !cmp_integer<T>::less(a, b);
|
const byte_view<T> a{sa}, b{sb};
|
||||||
|
return a > b;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool equal(const string_view &a, const string_view &b)
|
static bool equal(const string_view &sa, const string_view &sb)
|
||||||
{
|
{
|
||||||
return cmp_integer<T>::equal(a, b);
|
return cmp_integer<T>::equal(sa, sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_cmp_integer()
|
reverse_cmp_integer()
|
||||||
|
|
Loading…
Reference in a new issue