unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word.
authorRichard Henderson <rth@redhat.com>
Wed, 7 May 2003 22:01:37 +0000 (15:01 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 7 May 2003 22:01:37 +0000 (15:01 -0700)
        * unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr,
        not _Unwind_Word.

From-SVN: r66581

gcc/ChangeLog
gcc/unwind-dw2.c

index 2dc768dbf07cae46638fe39a99ba07f06f939c66..4b99681681c2f4ed8fae789b03363b1ee50a80cf 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-07  Richard Henderson  <rth@redhat.com>
+
+       * unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr,
+       not _Unwind_Word.
+
 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
 
        * stmt.c (force_label_rtx): New function, based on logic
index 5a26d0b630ee0f1f55ca8eea8d98d9eca9d49c5b..f752ffe0f453cf151d4621bb556ae28eee51b2ff 100644 (file)
@@ -178,7 +178,7 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index)
 _Unwind_Word
 _Unwind_GetCFA (struct _Unwind_Context *context)
 {
-  return (_Unwind_Word)context->cfa;
+  return (_Unwind_Ptr) context->cfa;
 }
 
 /* Overwrite the saved value for register REG in CONTEXT with VAL.  */