Skip to content

Commit 42b5dab

Browse files
authored
[libunwind][AIX] Cast NULL as type uintptr_t. (#93204)
Casting NULL as type `uintptr_t` to allow type checking in both 32-bit and 64-bit mode.
1 parent 7241792 commit 42b5dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/UnwindCursor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ int UnwindCursor<A, R>::stepWithTBTable(pint_t pc, tbtable *TBTable,
24162416
}
24172417

24182418
// Reset LR in the current context.
2419-
newRegisters.setLR(NULL);
2419+
newRegisters.setLR(static_cast<uintptr_t>(NULL));
24202420

24212421
_LIBUNWIND_TRACE_UNWINDING(
24222422
"Extract info from lastStack=%p, returnAddress=%p",

0 commit comments

Comments
 (0)