aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-10-25 06:47:13 +0000
committerFred Fish <fnf@specifix.com>1991-10-25 06:47:13 +0000
commitc8c0a2bd59cf277c1ebaf857b4e84eff91b94580 (patch)
tree55effa7dd107c739d18778756d069322e9395437 /gdb/dwarfread.c
parent84d82b1ccde63f3847e3e413e014024895c288d1 (diff)
downloadgdb-c8c0a2bd59cf277c1ebaf857b4e84eff91b94580.zip
gdb-c8c0a2bd59cf277c1ebaf857b4e84eff91b94580.tar.gz
gdb-c8c0a2bd59cf277c1ebaf857b4e84eff91b94580.tar.bz2
Add casts to remove compiler warnings from native Sun cc.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 24d9c8c..ac08a51 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -3019,7 +3019,7 @@ DEFUN(decode_mod_fund_type, (typedata), char *typedata)
/* Deduct the size of the fundamental type bytes at the end of the block. */
modcount -= sizeof (short);
/* Skip over the two size bytes at the beginning of the block. */
- modifiers = typedata + sizeof (short);
+ modifiers = (unsigned char *) typedata + sizeof (short);
/* Now do the actual decoding */
typep = decode_modified_type (modifiers, modcount, AT_mod_fund_type);
return (typep);
@@ -3060,7 +3060,7 @@ DEFUN(decode_mod_u_d_type, (typedata), char *typedata)
/* Deduct the size of the reference type bytes at the end of the block. */
modcount -= sizeof (long);
/* Skip over the two size bytes at the beginning of the block. */
- modifiers = typedata + sizeof (short);
+ modifiers = (unsigned char *) typedata + sizeof (short);
/* Now do the actual decoding */
typep = decode_modified_type (modifiers, modcount, AT_mod_u_d_type);
return (typep);