1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix integer type warnings

This is necessary to compile Tracy-instrumented code in
codebases built with -Werror.
This commit is contained in:
Felipe Oliveira Carvalho
2020-11-19 16:36:01 +01:00
parent e580dfeed3
commit c9865c5f95
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ static tracy_force_inline void* Callstack( int depth )
{
assert( depth >= 1 );
auto trace = (uintptr_t*)tracy_malloc( ( 1 + depth ) * sizeof( uintptr_t ) );
const auto num = backtrace( (void**)(trace+1), depth );
auto trace = (uintptr_t*)tracy_malloc( ( 1 + (size_t)depth ) * sizeof( uintptr_t ) );
const auto num = (size_t)backtrace( (void**)(trace+1), depth );
*trace = num;
return trace;