aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/rx/ChangeLog4
-rw-r--r--sim/rx/load.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 7541c9d..633ed86 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-01 Mike Frysinger <vapier@gentoo.org>
+
+ * load.c (rx_load): Cast size to long.
+
2021-04-26 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (NL_TARGET): Delete.
diff --git a/sim/rx/load.c b/sim/rx/load.c
index a8a4733..b4523e1 100644
--- a/sim/rx/load.c
+++ b/sim/rx/load.c
@@ -151,7 +151,7 @@ rx_load (bfd *prog, host_callback *callback)
}
if (bfd_bread (buf, size, prog) != size)
{
- fprintf (stderr, "Failed to read %lx bytes\n", size);
+ fprintf (stderr, "Failed to read %lx bytes\n", (long) size);
continue;
}