From ca499eefaf0a54c5d5a7bd1aa77e89f41e901e22 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 Jun 2018 17:27:03 +0200 Subject: [PATCH] Return typeless pointer. --- client/TracyCallstack.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyCallstack.hpp b/client/TracyCallstack.hpp index 11eca201..83aede92 100644 --- a/client/TracyCallstack.hpp +++ b/client/TracyCallstack.hpp @@ -31,7 +31,7 @@ struct CallstackEntry void InitCallstack(); CallstackEntry DecodeCallstackPtr( uint64_t ptr ); -static tracy_force_inline const char* Callstack() +static tracy_force_inline void* Callstack() { enum { StackDepth = 24 }; static_assert( StackDepth <= 63, "Stack depth can't be greater than 63." ); @@ -40,7 +40,7 @@ static tracy_force_inline const char* Callstack() const auto num = RtlCaptureStackBackTrace( 0, StackDepth, (void**)( trace+1 ), nullptr ); *trace = num; - return (const char*)trace; + return trace; } #endif