Skip to content
Snippets Groups Projects
  • Richard Mudgett's avatar
    314782e8
    backtrace.c: Fix casting pointer to/from integral type. · 314782e8
    Richard Mudgett authored
    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
    314782e8
    History
    backtrace.c: Fix casting pointer to/from integral type.
    Richard Mudgett authored
    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