Skip to content

Commit b8fafe6

Browse files
committed
Useless cast
1 parent e86d35d commit b8fafe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unwind/unwind_with_libunwind.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ namespace detail {
2929
#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
3030
// Apple's unw_get_reg(UNW_REG_IP) may return pointer-authenticated addresses with PAC
3131
// signature bits in the upper bytes
32-
uintptr_t stripped = static_cast<uintptr_t>(pc);
32+
uintptr_t stripped = pc;
3333
__asm__ volatile("xpaci %0" : "+r"(stripped));
34-
pc = static_cast<unw_word_t>(stripped);
34+
pc = stripped;
3535
#endif
3636
unw_get_reg(&cursor, UNW_REG_SP, &sp);
3737
if(skip) {

0 commit comments

Comments
 (0)