[libcxxabi] r207469 - Fix cast warning

Nick Kledzik kledzik at apple.com
Mon Apr 28 16:49:49 PDT 2014


Author: kledzik
Date: Mon Apr 28 18:49:49 2014
New Revision: 207469

URL: http://llvm.org/viewvc/llvm-project?rev=207469&view=rev
Log:
Fix cast warning

Modified:
    libcxxabi/trunk/src/Unwind/AddressSpace.hpp

Modified: libcxxabi/trunk/src/Unwind/AddressSpace.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/Unwind/AddressSpace.hpp?rev=207469&r1=207468&r2=207469&view=diff
==============================================================================
--- libcxxabi/trunk/src/Unwind/AddressSpace.hpp (original)
+++ libcxxabi/trunk/src/Unwind/AddressSpace.hpp Mon Apr 28 18:49:49 2014
@@ -197,13 +197,13 @@ inline LocalAddressSpace::pint_t LocalAd
     break;
   case DW_EH_PE_sdata2:
     // Sign extend from signed 16-bit value.
-    result = (int16_t)get16(addr);
+    result = (pint_t)(int16_t)get16(addr);
     p += 2;
     addr = (pint_t) p;
     break;
   case DW_EH_PE_sdata4:
     // Sign extend from signed 32-bit value.
-    result = (int32_t)get32(addr);
+    result = (pint_t)(int32_t)get32(addr);
     p += 4;
     addr = (pint_t) p;
     break;





More information about the cfe-commits mailing list