mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Merge pull request #660 from sistr22/patch-android-compilation
Fix compilation on 32 bit android
This commit is contained in:
commit
c79f6128bc
@ -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