mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Fix compilation on 32 bit android
This commit is contained in:
parent
2f2f9939db
commit
37f886dba4
@ -169,7 +169,11 @@ static std::vector<MappingInfo> ParseMappings()
|
|||||||
{
|
{
|
||||||
uintptr_t start_addr;
|
uintptr_t start_addr;
|
||||||
uintptr_t end_addr;
|
uintptr_t end_addr;
|
||||||
|
#if defined(__LP64__)
|
||||||
if( sscanf( line, "%lx-%lx", &start_addr, &end_addr ) != 2 ) continue;
|
if( sscanf( line, "%lx-%lx", &start_addr, &end_addr ) != 2 ) continue;
|
||||||
|
#else
|
||||||
|
if (sscanf( line, "%dx-%dx", &start_addr, &end_addr ) != 2 ) continue;
|
||||||
|
#endif
|
||||||
char* first_space = strchr( line, ' ' );
|
char* first_space = strchr( line, ' ' );
|
||||||
if( !first_space ) continue;
|
if( !first_space ) continue;
|
||||||
char* perm = first_space + 1;
|
char* perm = first_space + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user