diff options
author | Ludovic Rousseau <ludovic.rousseau@gmail.com> | 2012-10-17 18:01:59 +0200 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau+github@gmail.com> | 2013-02-15 11:19:05 +0100 |
commit | ad26880470dc957ee58dd8fa377184dad99e01fa (patch) | |
tree | a862ca9691c40e7f038cd4587930ead47e387cd9 /examples | |
parent | bfd02c6f59f11a6af8cc9e6af96f4942cc37a5f4 (diff) | |
download | libusb-ad26880470dc957ee58dd8fa377184dad99e01fa.tar.gz |
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);
~ ^~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ezusb.c | 2 |
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 */ |