diff options
| author | Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> | 2025-08-14 19:44:56 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 15:44:56 +0100 |
| commit | beee22a95ed9044950e5486f22edd813e00ffa2c (patch) | |
| tree | 4612fa3d9b17275d417a059c19f998c64e871997 /src/debug/CrashReporter.cpp | |
| parent | aa6a78f0a4e17c49ed4aff8b58c3f7ec7ef0408f (diff) | |
refactor: Use new hyprutils casts (#11377)
Diffstat (limited to 'src/debug/CrashReporter.cpp')
| -rw-r--r-- | src/debug/CrashReporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index 38552c51..f52062be 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -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; |
