mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix 32-bit short_ptr.
This commit is contained in:
parent
6a500ccdb3
commit
946e328198
@ -59,7 +59,7 @@ class short_ptr
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
tracy_force_inline short_ptr() {}
|
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 T*() { return m_ptr; }
|
||||||
tracy_force_inline operator const T*() const { return m_ptr; }
|
tracy_force_inline operator const T*() const { return m_ptr; }
|
||||||
|
Loading…
Reference in New Issue
Block a user