Skip to content

Commit

Permalink
Simplify Address_str
Browse files Browse the repository at this point in the history
Address is a typedef to an unsigned long on all platforms. No need for
the other case.
  • Loading branch information
hainest committed Nov 6, 2023
1 parent 696884c commit c4b94aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dyninstAPI/src/dynProcess.C
Expand Up @@ -68,10 +68,7 @@ namespace {
{
static int i=0;
i=(i+1)%_numaddrstrs;
if (sizeof(Address) == sizeof(int))
snprintf(_addrstr[i],19,"0x%08X",(unsigned int)addr);
else
snprintf(_addrstr[i],19,"0x%016lX",(unsigned long)addr);
snprintf(_addrstr[i],19,"0x%016lX", addr);
return (_addrstr[i]);
}
}
Expand Down

0 comments on commit c4b94aa

Please sign in to comment.