Fix callstack pointers in 32-bit builds.

This commit is contained in:
Bartosz Taudul 2020-02-22 13:38:09 +01:00
parent 9b9474ada1
commit f186540c4f
2 changed files with 2 additions and 2 deletions

View File

@ -2573,7 +2573,7 @@ void Profiler::SendCallstack( int depth, const char* skipBefore )
CutCallstack( ptr, skipBefore ); CutCallstack( ptr, skipBefore );
TracyLfqPrepare( QueueType::Callstack ); TracyLfqPrepare( QueueType::Callstack );
MemWrite( &item->callstack.ptr, ptr ); MemWrite( &item->callstack.ptr, (uint64_t)ptr );
TracyLfqCommit; TracyLfqCommit;
#endif #endif
} }

View File

@ -413,7 +413,7 @@ public:
#ifdef TRACY_HAS_CALLSTACK #ifdef TRACY_HAS_CALLSTACK
auto ptr = Callstack( depth ); auto ptr = Callstack( depth );
TracyLfqPrepare( QueueType::Callstack ); TracyLfqPrepare( QueueType::Callstack );
MemWrite( &item->callstack.ptr, ptr ); MemWrite( &item->callstack.ptr, (uint64_t)ptr );
TracyLfqCommit; TracyLfqCommit;
#endif #endif
} }