[libunwind] Remove -Wsign-conversion warning
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 13 May 2022 17:24:57 +0000 (13:24 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 13 May 2022 17:25:28 +0000 (13:25 -0400)
libunwind/src/DwarfInstructions.hpp

index 865a489..a4fac5a 100644 (file)
@@ -177,7 +177,7 @@ bool DwarfInstructions<A, R>::getRA_SIGN_STATE(A &addressSpace, R registers,
   pint_t raSignState;
   auto regloc = prolog.savedRegisters[UNW_AARCH64_RA_SIGN_STATE];
   if (regloc.location == CFI_Parser<A>::kRegisterUnused)
-    raSignState = regloc.value;
+    raSignState = static_cast<pint_t>(regloc.value);
   else
     raSignState = getSavedRegister(addressSpace, registers, cfa, regloc);