base-hw: fix compile error with GCC 4.7

Fixes #438.
This commit is contained in:
Christian Prochaska 2012-10-30 13:41:33 +01:00 committed by Norman Feske
parent 18d881cf0f
commit dc205e6937

View File

@ -258,7 +258,7 @@ namespace Kernel
Entry * find(unsigned long const object_id)
{
if (object_id == id()) return this;
Entry * const subtree = child(object_id > id());
Entry * const subtree = Avl_node<Entry>::child(object_id > id());
return subtree ? subtree->find(object_id) : 0;
}