aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-09-19 21:59:41 +0000
committerAndrew Cagney <cagney@redhat.com>2001-09-19 21:59:41 +0000
commit8535cb383932a61b3ff6f8c6a984447e1693ea5b (patch)
tree45e0942849f92223cbf0378247eac004dfdcb206 /gdb/cris-tdep.c
parente0441cf0e1b1c7e126ca50f8ce4c4a40561187b5 (diff)
downloadgdb-8535cb383932a61b3ff6f8c6a984447e1693ea5b.zip
gdb-8535cb383932a61b3ff6f8c6a984447e1693ea5b.tar.gz
gdb-8535cb383932a61b3ff6f8c6a984447e1693ea5b.tar.bz2
* cris-tdep.c (cris_get_signed_offset): Change return type to an
explicitly signed char.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 63c83cb..50d81b4 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