summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-10-13 19:50:23 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-10-13 19:50:23 +0000
commit31c18116de2105deed8aa8dab84bf08a930f2112 (patch)
treee130c5988d1c18cc2bed3cac1fdb15c4d1045097
parent0290094d8a386acef6656e4c4b881d59edbb7079 (diff)
downloadrockbox-31c18116de2105deed8aa8dab84bf08a930f2112.tar.gz
rockbox-31c18116de2105deed8aa8dab84bf08a930f2112.zip
USB: Use explicit casting when setting wTotalLength field in descriptor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23157 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usbstack/usb_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index 7321d3e565..5093b93301 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -567,7 +567,7 @@ static void request_handler_device_get_descriptor(struct usb_ctrlrequest* req)
567 } 567 }
568 } 568 }
569 config_descriptor.bNumInterfaces = usb_core_num_interfaces; 569 config_descriptor.bNumInterfaces = usb_core_num_interfaces;
570 config_descriptor.wTotalLength = size; 570 config_descriptor.wTotalLength = (uint16_t)size;
571 memcpy(&response_data[0],&config_descriptor, 571 memcpy(&response_data[0],&config_descriptor,
572 sizeof(struct usb_config_descriptor)); 572 sizeof(struct usb_config_descriptor));
573 573