From 55127d0c3176549b9c293068e61c006165feac8a Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Mon, 17 Jun 2019 11:41:42 +0200 Subject: [PATCH] Use void* as return type of get_address() --- tracetools/include/tracetools/utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);