summaryrefslogtreecommitdiff
path: root/sim/h8300/p1.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-02-02 00:45:59 +0000
committerJohn Gilmore <gnu@cygnus>1993-02-02 00:45:59 +0000
commita082325bd2660b06c46452bd9894258a55343288 (patch)
treea1c730446f9f69b8ba62b990d1f2ac7bcb696019 /sim/h8300/p1.c
parent1fa643be8e6e420bbe85c4afe843cb38c2fc0151 (diff)
downloadbinutils-gdb-a082325bd2660b06c46452bd9894258a55343288.tar.gz
* Makefile.in: Make SunOS halfdone VPATH work.
* p1.c: Lint picked up by HP native compiler.
Diffstat (limited to 'sim/h8300/p1.c')
-rw-r--r--sim/h8300/p1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/h8300/p1.c b/sim/h8300/p1.c
index 4297e7babe5..da139d5df42 100644
--- a/sim/h8300/p1.c
+++ b/sim/h8300/p1.c
@@ -51,11 +51,11 @@ littleendian;
static void
meminit ()
{
- if (!saved_state.mem)
+ if (saved_state.mem == 0)
{
int tmp;
- saved_state.mem = calloc (1024, 64);
+ saved_state.mem = (unsigned short *)calloc (1024, 64);
littleendian.i = 1;
/* initialze the array of pointers to byte registers */
for (tmp = 0; tmp < 8; tmp++)