From 6c5ddd5485b2c12d73e859b4bf49c41986b984b6 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 19 Sep 2001 21:59:41 +0000 Subject: [PATCH] * cris-tdep.c (cris_get_signed_offset): Change return type to an explicitly signed char. --- gdb/ChangeLog | 3 +++ gdb/cris-tdep.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b062a43dcb..d4ef106f3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-09-19 Andrew Cagney + * cris-tdep.c (cris_get_signed_offset): Change return type to an + explicitly signed char. + * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update function signature to match recent tracepoint.c:encode_actions changes. diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 63c83cb0a1..50d81b4c7f 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -352,10 +352,10 @@ cris_set_size_to_dword (unsigned short *insn) *insn |= 0x20; } -static char +static signed char cris_get_signed_offset (unsigned short insn) { - return ((char) (insn & 0x00FF)); + return ((signed char) (insn & 0x00FF)); } /* Calls an op function given the op-type, working on the insn and the -- 2.11.0