silent some bad-function-cast

This commit is contained in:
Philippe Teuwen
2020-05-04 01:18:26 +02:00
parent 723503b74e
commit 58f71d97f5
6 changed files with 15 additions and 11 deletions

View File

@@ -253,7 +253,8 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
break;
if (sscanf(buffer, "%" SCNx64 "-%" SCNx64 " %s %" SCNx64 " %x:%x %u %s\n", &low, &high, perms, &offset, &major, &minor, &inode, path) == 8) {
uint64_t addr = (uint64_t)(uintptr_t)WAI_RETURN_ADDRESS();
void *addr_tmp = WAI_RETURN_ADDRESS();
uint64_t addr = (uint64_t)addr_tmp;
if (low <= addr && addr <= high) {
char *resolved;