diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-16 01:20:45 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-16 01:20:45 +0000 |
commit | a93cef02ffdb72500dab6037ca542d8ef24504e4 (patch) | |
tree | 9dac650138d65ce84c9c549ee8e9973b163c3a9b /libusb/io.c | |
parent | 12e3f9c159f83365309ebf7885adbb0ae31a81d6 (diff) | |
download | libusb-a93cef02ffdb72500dab6037ca542d8ef24504e4.tar.gz |
r85: fixed MSVC warnings for x64 and reverted ssize_t to int for libusb_get_device_list change introduced with r52. Added definition on ssize_t in libusb.h for MSVC platforms.
Diffstat (limited to 'libusb/io.c')
-rw-r--r-- | libusb/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c index 4ed956c..2e1daf4 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1170,7 +1170,7 @@ API_EXPORTED struct libusb_transfer *libusb_alloc_transfer(int iso_packets) { size_t os_alloc_size = usbi_backend->transfer_priv_size + (usbi_backend->add_iso_packet_size * iso_packets); - int alloc_size = sizeof(struct usbi_transfer) + size_t alloc_size = sizeof(struct usbi_transfer) + sizeof(struct libusb_transfer) + (sizeof(struct libusb_iso_packet_descriptor) * iso_packets) + os_alloc_size; |