* cris-tdep.c (cris_get_signed_offset): Change return type to an
authorAndrew Cagney <cagney@redhat.com>
Wed, 19 Sep 2001 21:59:41 +0000 (21:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 19 Sep 2001 21:59:41 +0000 (21:59 +0000)
explicitly signed char.

gdb/ChangeLog
gdb/cris-tdep.c

index b062a43dcbb48076f8e18a94ff65d6f13cc284e8..d4ef106f3cc8e98955794cb2ab1428fecba02f4b 100644 (file)
@@ -1,5 +1,8 @@
 2001-09-19  Andrew Cagney  <ac131313@redhat.com>
 
+       * 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.
index 63c83cb0a13a05a426e94778e139ff37d5b47d02..50d81b4c7fd7130fd4d2d7db076aa99cdfa0b069 100644 (file)
@@ -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
This page took 0.029542 seconds and 4 git commands to generate.