Commit 8c6a3a6b09dd4f1fe5dff1fb58f545d181b28ece

Authored by Gordon Hollingworth
1 parent 091f8f50

Added fix from lurch and ED6E0F17 for 64 bit systems.

Showing 1 changed file with 2 additions and 2 deletions
@@ -43,7 +43,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid( @@ -43,7 +43,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid(
43 struct libusb_device *found = NULL; 43 struct libusb_device *found = NULL;
44 struct libusb_device *dev; 44 struct libusb_device *dev;
45 struct libusb_device_handle *handle = NULL; 45 struct libusb_device_handle *handle = NULL;
46 - size_t i = 0; 46 + uint32_t i = 0;
47 int r; 47 int r;
48 48
49 if (libusb_get_device_list(ctx, &devs) < 0) 49 if (libusb_get_device_list(ctx, &devs) < 0)
@@ -55,7 +55,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid( @@ -55,7 +55,7 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid(
55 if (r < 0) 55 if (r < 0)
56 goto out; 56 goto out;
57 if(verbose) 57 if(verbose)
58 - printf("Found device %zu idVendor=0x%04x idProduct=0x%04x\n", i, desc.idVendor, desc.idProduct); 58 + printf("Found device %u idVendor=0x%04x idProduct=0x%04x\n", i, desc.idVendor, desc.idProduct);
59 if (desc.idVendor == vendor_id) { 59 if (desc.idVendor == vendor_id) {
60 if(desc.idProduct == 0x2763 || 60 if(desc.idProduct == 0x2763 ||
61 desc.idProduct == 0x2764) 61 desc.idProduct == 0x2764)