From 8c6a3a6b09dd4f1fe5dff1fb58f545d181b28ece Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Fri, 20 Jan 2017 11:22:44 +0000 Subject: [PATCH] Added fix from lurch and ED6E0F17 for 64 bit systems. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 72e2c96..e07b745 100755 --- a/main.c +++ b/main.c @@ -43,7 +43,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid( struct libusb_device *found = NULL; struct libusb_device *dev; struct libusb_device_handle *handle = NULL; - size_t i = 0; + uint32_t i = 0; int r; if (libusb_get_device_list(ctx, &devs) < 0) @@ -55,7 +55,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid( if (r < 0) goto out; if(verbose) - printf("Found device %zu idVendor=0x%04x idProduct=0x%04x\n", i, desc.idVendor, desc.idProduct); + printf("Found device %u idVendor=0x%04x idProduct=0x%04x\n", i, desc.idVendor, desc.idProduct); if (desc.idVendor == vendor_id) { if(desc.idProduct == 0x2763 || desc.idProduct == 0x2764) -- libgit2 0.21.4