summaryrefslogtreecommitdiff
path: root/libusb/libusb.h
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-14 13:34:11 +0000
committerPete Batard <pbatard@gmail.com>2010-01-14 13:34:11 +0000
commit995c7df391d6011e624006bfbb610ace18f9488f (patch)
tree53c681c3a1dadd42eb3a536791076ad269d69f00 /libusb/libusb.h
parente45233574257f5ffd409e830c0d1d32fc6b37d81 (diff)
downloadlibusb-995c7df391d6011e624006bfbb610ace18f9488f.tar.gz
fixed MSVC warnings (/W4 or MSVC6)
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r--libusb/libusb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 1fa01ac..46a5006 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -1146,7 +1146,7 @@ static inline int libusb_get_descriptor(libusb_device_handle *dev,
{
return libusb_control_transfer(dev, LIBUSB_ENDPOINT_IN,
LIBUSB_REQUEST_GET_DESCRIPTOR, (desc_type << 8) | desc_index, 0, data,
- length, 1000);
+ (uint16_t) length, 1000);
}
/** \ingroup desc
@@ -1168,7 +1168,7 @@ static inline int libusb_get_string_descriptor(libusb_device_handle *dev,
{
return libusb_control_transfer(dev, LIBUSB_ENDPOINT_IN,
LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_STRING << 8) | desc_index,
- langid, data, length, 1000);
+ langid, data, (uint16_t)length, 1000);
}
int libusb_get_string_descriptor_ascii(libusb_device_handle *dev,