summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau@gmail.com>2012-10-17 18:01:59 +0200
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>2013-02-15 11:19:05 +0100
commitad26880470dc957ee58dd8fa377184dad99e01fa (patch)
treea862ca9691c40e7f038cd4587930ead47e387cd9
parentbfd02c6f59f11a6af8cc9e6af96f4942cc37a5f4 (diff)
downloadlibusb-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); ~ ^~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--examples/ezusb.c2
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 2 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 */
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index b92e4fe..8fb6206 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10606
+#define LIBUSB_NANO 10607