Add casts to avoid warnings about implicit conversions losing precision
authorMartin Storsjo <martin@martin.st>
Tue, 22 Jan 2019 20:50:42 +0000 (20:50 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 22 Jan 2019 20:50:42 +0000 (20:50 +0000)
commit43ed1dbfa9c59312aa17eca35791e309826b53f7
tree5d1fcfb2f294d1fd5cf74ae7398e7b33fddeb1c3
parent94adf435ca149fe8ff8bccb20fa3cc26931066e3
Add casts to avoid warnings about implicit conversions losing precision

This fixes warnings like these:

DwarfInstructions.hpp:85:25: warning: implicit conversion
      loses integer precision: 'uint64_t' (aka 'unsigned long long') to
      'libunwind::DwarfInstructions<libunwind::LocalAddressSpace,
      libunwind::Registers_arm>::pint_t' (aka 'unsigned int')
      [-Wshorten-64-to-32]

DwarfInstructions.hpp:88:25: warning: implicit conversion
      loses integer precision: 'uint64_t' (aka 'unsigned long long') to
      'libunwind::DwarfInstructions<libunwind::LocalAddressSpace,
      libunwind::Registers_arm>::pint_t' (aka 'unsigned int')
      [-Wshorten-64-to-32]

Differential Revision: https://reviews.llvm.org/D56983

llvm-svn: 351877
libunwind/src/DwarfInstructions.hpp