mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-24 08:23:48 -07:00
refactor: Use new hyprutils casts (#11377)
This commit is contained in:
@@ -206,8 +206,8 @@ void NCrashReporter::createAndSaveCrash(int sig) {
|
||||
// convert in memory address to VMA address
|
||||
Dl_info info;
|
||||
struct link_map* linkMap;
|
||||
dladdr1((void*)CALLSTACK[i].adr, &info, (void**)&linkMap, RTLD_DL_LINKMAP);
|
||||
size_t vmaAddr = (size_t)CALLSTACK[i].adr - linkMap->l_addr;
|
||||
dladdr1(CALLSTACK[i].adr, &info, rc<void**>(&linkMap), RTLD_DL_LINKMAP);
|
||||
size_t vmaAddr = rc<size_t>(CALLSTACK[i].adr) - linkMap->l_addr;
|
||||
#else
|
||||
// musl doesn't define dladdr1
|
||||
size_t vmaAddr = (size_t)CALLSTACK[i].adr;
|
||||
|
Reference in New Issue
Block a user