From 37f886dba4bab8bce196b93fe2ba211638938454 Mon Sep 17 00:00:00 2001 From: Damien Mabin Date: Wed, 15 Nov 2023 13:28:37 +0200 Subject: [PATCH] Fix compilation on 32 bit android --- public/client/TracyProfiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index d5ad959f..0f3d5810 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -169,7 +169,11 @@ static std::vector ParseMappings() { uintptr_t start_addr; uintptr_t end_addr; +#if defined(__LP64__) 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, ' ' ); if( !first_space ) continue; char* perm = first_space + 1;