base: use reinterpret_cast for symbol lookup

This patch changes the Shared_object::lookup function to use a
reinterpret_cast instead of a static_cast to allow the conversion
from symbol addresses to arbitrary pointers.
This commit is contained in:
Norman Feske 2014-11-26 17:57:40 +01:00 committed by Christian Helmuth
parent f68889ea0a
commit 671682cb6a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Genode::Shared_object
*/
template<typename T = void *> T lookup(const char *symbol) const
{
return static_cast<T>(_lookup(symbol));
return reinterpret_cast<T>(_lookup(symbol));
}
/**