mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix off-by-one.
This commit is contained in:
parent
7912807133
commit
e495747b88
@ -38,7 +38,7 @@ CallstackEntry DecodeCallstackPtr( uint64_t ptr );
|
||||
|
||||
static tracy_force_inline void* Callstack( int depth )
|
||||
{
|
||||
assert( depth >= 1 && depth <= 63 );
|
||||
assert( depth >= 1 && depth < 63 );
|
||||
|
||||
auto trace = (uintptr_t*)tracy_malloc( ( 1 + depth ) * sizeof( uintptr_t ) );
|
||||
const auto num = RtlCaptureStackBackTrace( 0, depth, (void**)( trace+1 ), nullptr );
|
||||
|
Loading…
Reference in New Issue
Block a user