From ca2cac9b997268d62d1cdccfbbbc0f9734933c81 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 Jun 2018 14:34:37 +0200 Subject: [PATCH] Use proper type for pointer size. --- client/TracyCallstack.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyCallstack.hpp b/client/TracyCallstack.hpp index 5a53d7b7..52dd8984 100644 --- a/client/TracyCallstack.hpp +++ b/client/TracyCallstack.hpp @@ -36,7 +36,7 @@ tracy_force_inline const char* Callstack() enum { StackDepth = 24 }; static_assert( StackDepth <= 63, "Stack depth can't be greater than 63." ); - auto trace = (uint64_t*)tracy_malloc( ( 1 + StackDepth ) * sizeof( uint64_t ) ); + auto trace = (uintptr_t*)tracy_malloc( ( 1 + StackDepth ) * sizeof( uintptr_t ) ); const auto num = RtlCaptureStackBackTrace( 0, StackDepth, (void**)( trace+1 ), nullptr ); *trace = num;