aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ezusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ezusb.c')
-rw-r--r--examples/ezusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ezusb.c b/examples/ezusb.c
index 4451816..13404ee 100644
--- a/examples/ezusb.c
+++ b/examples/ezusb.c
@@ -248,7 +248,7 @@ static int parse_ihex(FILE *image, void *context,
/* Read the target offset (address up to 64KB) */
tmp = buf[7];
buf[7] = 0;
- off = strtoul(buf+3, NULL, 16);
+ off = (int)strtoul(buf+3, NULL, 16);
buf[7] = tmp;
/* Initialize data_addr */