mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Cast void* to char*.
This commit is contained in:
parent
3a7ed53c5c
commit
49f1277e55
@ -318,18 +318,18 @@ static int FastCallstackDataCb( void* data, uintptr_t pc, const char* fn, int li
|
|||||||
{
|
{
|
||||||
if( function )
|
if( function )
|
||||||
{
|
{
|
||||||
strcpy( data, function );
|
strcpy( (char*)data, function );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*data = '\0';
|
*(char*)data = '\0';
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FastCallstackErrorCb( void* data, const char* /*msg*/, int /*errnum*/ )
|
static void FastCallstackErrorCb( void* data, const char* /*msg*/, int /*errnum*/ )
|
||||||
{
|
{
|
||||||
*data = '\0';
|
*(char*)data = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
const char* DecodeCallstackPtrFast( uint64_t ptr )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user