diff --git a/tracetools/include/tracetools/utils.hpp b/tracetools/include/tracetools/utils.hpp index d5b6377..46b091b 100644 --- a/tracetools/include/tracetools/utils.hpp +++ b/tracetools/include/tracetools/utils.hpp @@ -5,7 +5,7 @@ #include template -size_t get_address(std::function f) +void * get_address(std::function f) { typedef T (fnType)(U...); fnType ** fnPointer = f.template target(); @@ -13,7 +13,7 @@ size_t get_address(std::function f) if (fnPointer == nullptr) { return 0; } - return (size_t)*fnPointer; + return (void *)*fnPointer; } const char * get_symbol(void * funptr);