From 946e328198241abe30d0eb04fec53148d07eafd5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 5 Nov 2019 00:51:30 +0100 Subject: [PATCH] Fix 32-bit short_ptr. --- server/TracyShortPtr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyShortPtr.hpp b/server/TracyShortPtr.hpp index ad96cc7d..c747851c 100644 --- a/server/TracyShortPtr.hpp +++ b/server/TracyShortPtr.hpp @@ -59,7 +59,7 @@ class short_ptr { public: tracy_force_inline short_ptr() {} - tracy_force_inline short_ptr( T* ptr ) : m_ptr( ptr ) {} + tracy_force_inline short_ptr( const T* ptr ) { memcpy( &m_ptr, &ptr, sizeof( T* ) ); } tracy_force_inline operator T*() { return m_ptr; } tracy_force_inline operator const T*() const { return m_ptr; }