aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
parentbfd02c6f59f11a6af8cc9e6af96f4942cc37a5f4 (diff)
downloadandroid_external_libusbx-ad26880470dc957ee58dd8fa377184dad99e01fa.tar.gz
android_external_libusbx-ad26880470dc957ee58dd8fa377184dad99e01fa.tar.bz2
android_external_libusbx-ad26880470dc957ee58dd8fa377184dad99e01fa.zip
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.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 */