guile/: Add enum cast
authorPedro Alves <palves@redhat.com>
Thu, 29 Oct 2015 15:25:00 +0000 (15:25 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 29 Oct 2015 17:33:27 +0000 (17:33 +0000)
gdb/ChangeLog:
2015-10-29  Pedro Alves  <palves@redhat.com>

* guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.

gdb/ChangeLog
gdb/guile/scm-frame.c

index 000566e..9433221 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-29  Pedro Alves  <palves@redhat.com>
+
+       * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
+
 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
 
        * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
index 24e26e8..55e0faf 100644 (file)
@@ -1045,7 +1045,7 @@ gdbscm_unwind_stop_reason_string (SCM reason_scm)
   if (reason < UNWIND_FIRST || reason > UNWIND_LAST)
     scm_out_of_range (FUNC_NAME, reason_scm);
 
-  str = unwind_stop_reason_to_string (reason);
+  str = unwind_stop_reason_to_string ((enum unwind_stop_reason) reason);
   return gdbscm_scm_from_c_string (str);
 }
 \f