aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-05-19 22:37:08 +0000
committerStu Grossman <grossman@cygnus>1993-05-19 22:37:08 +0000
commitb7b184a125a3f779056ecadb4105324cd113480a (patch)
tree979611efcd2c2a7778e46de5df5c4f8ab5719ea3 /opcodes
parent67a113cf3e4972d2b72832a3e5f14b3f7ae7a9ac (diff)
downloadfsf-binutils-gdb-b7b184a125a3f779056ecadb4105324cd113480a.zip
fsf-binutils-gdb-b7b184a125a3f779056ecadb4105324cd113480a.tar.gz
fsf-binutils-gdb-b7b184a125a3f779056ecadb4105324cd113480a.tar.bz2
* z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
happy.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/z8k-dis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/z8k-dis.c b/opcodes/z8k-dis.c
index d296f64..858d5a2 100644
--- a/opcodes/z8k-dis.c
+++ b/opcodes/z8k-dis.c
@@ -64,7 +64,7 @@ fetch_data (info, nibble)
struct disassemble_info *info;
int nibble;
{
- char mybuf[20];
+ unsigned char mybuf[20];
int status;
instr_data_s *priv = (instr_data_s *)info->private_data;
bfd_vma start = priv->insn_start + priv->max_fetched / 2;
@@ -72,13 +72,13 @@ fetch_data (info, nibble)
if ((nibble % 4) != 0)
abort ();
status = (*info->read_memory_func) (start,
- mybuf,
+ (bfd_byte *) mybuf,
(nibble - priv->max_fetched) / 2,
info);
if (status != 0)
{
(*info->memory_error_func) (status, start, info);
- longjmp (priv->bailout);
+ longjmp (priv->bailout, 1);
}
{