diff --git a/repos/base/include/util/dictionary.h b/repos/base/include/util/dictionary.h index c393b0776c..f7c1ac9be2 100644 --- a/repos/base/include/util/dictionary.h +++ b/repos/base/include/util/dictionary.h @@ -44,7 +44,7 @@ class Genode::Dictionary : Noncopyable Dictionary &_dictionary; - bool higher(T const *other) const { return name > other->This::name; } + bool higher(T const *other) const { return other->This::name > name; } friend class Avl_tree; friend class Avl_node; @@ -52,7 +52,7 @@ class Genode::Dictionary : Noncopyable static T *_matching_sub_tree(T &curr, NAME const &name) { - typename Avl_node::Side side = (curr.This::name > name); + typename Avl_node::Side side = (name > curr.This::name); return curr.Avl_node::child(side); }