From ad26880470dc957ee58dd8fa377184dad99e01fa Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 17 Oct 2012 18:01:59 +0200 Subject: Examples: Fix compiler warning examples/ezusb.c:251:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] off = strtoul(buf+3, NULL, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~~~ --- examples/ezusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/ezusb.c') 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 */ -- cgit v1.2.1