0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::db: Use actual gt operator for reverse integer less.

This commit is contained in:
Jason Volk 2018-04-18 00:08:19 -07:00
parent 03e8107b7b
commit e764747e17

View file

@ -105,14 +105,15 @@ template<class T>
struct ircd::db::reverse_cmp_integer
: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()