]> git.ipfire.org Git - thirdparty/asterisk.git/commit
backtrace.c: Fix casting pointer to/from integral type.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 19 Dec 2018 18:39:08 +0000 (12:39 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 19 Dec 2018 18:50:51 +0000 (13:50 -0500)
commit59717b5e850f428df58c13b6a24d5baadf0e8c40
tree309eb2dfdab0c1812c5bb41c180ffb4f7f30efaf
parent08e6cb6480bd7d91941cacf936bacd64f2738987
backtrace.c: Fix casting pointer to/from integral type.

The backtrace library bfd.h include file does not get the sizes of
pointers and ints right on some platforms.  On my old test box the size
of bfd_vma is 8 while the size of a pointer is 4.  gcc on the box
complains of the integer casting to/from pointers size mismatch.

* uintptr_t to the rescue by doing an appropriate two stage cast.

Change-Id: Icb2621583f50c8728de08a3c824d95fe53cc45d0
main/backtrace.c