Added fix from lurch and ED6E0F17 for 64 bit systems.

This commit is contained in:
Gordon Hollingworth 2017-01-20 11:22:44 +00:00
parent 091f8f5029
commit 8c6a3a6b09

4
main.c
View File

@ -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)