mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
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:
parent
f68889ea0a
commit
671682cb6a
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user