projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
67a113c
)
* z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
author
Stu Grossman
<grossman@cygnus>
Wed, 19 May 1993 22:37:08 +0000
(22:37 +0000)
committer
Stu Grossman
<grossman@cygnus>
Wed, 19 May 1993 22:37:08 +0000
(22:37 +0000)
happy.
opcodes/z8k-dis.c
patch
|
blob
|
history
diff --git
a/opcodes/z8k-dis.c
b/opcodes/z8k-dis.c
index
d296f64
..
858d5a2
100644
(file)
--- a/
opcodes/z8k-dis.c
+++ b/
opcodes/z8k-dis.c
@@
-64,7
+64,7
@@
fetch_data (info, nibble)
struct disassemble_info *info;
int 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;
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,
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);
(nibble - priv->max_fetched) / 2,
info);
if (status != 0)
{
(*info->memory_error_func) (status, start, info);
- longjmp (priv->bailout);
+ longjmp (priv->bailout
, 1
);
}
{
}
{