]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UsbBusDxe: Fixed Clang build error.
authorNikolai Saoukh <nms@otdel-1.org>
Wed, 10 Sep 2014 06:14:26 +0000 (06:14 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Sep 2014 06:14:26 +0000 (06:14 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Nikolai Saoukh <nms@otdel-1.org>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16084 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.h
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbEnumer.c

index 11570ab36d4ee8376cab7adcb29f59026a232f86..482a71f3386cc9d889b1551bf4f82c47a7b0ae60 100644 (file)
@@ -65,7 +65,7 @@ typedef struct {
 typedef struct {\r
   USB_INTERFACE_SETTING*        Settings[USB_MAX_INTERFACE_SETTING];\r
   UINTN                         NumOfSetting;\r
 typedef struct {\r
   USB_INTERFACE_SETTING*        Settings[USB_MAX_INTERFACE_SETTING];\r
   UINTN                         NumOfSetting;\r
-  UINT8                         ActiveIndex;  // Index of active setting\r
+  UINTN                         ActiveIndex;  // Index of active setting\r
 } USB_INTERFACE_DESC;\r
 \r
 typedef struct {\r
 } USB_INTERFACE_DESC;\r
 \r
 typedef struct {\r
index 430f5aa3dc643934e0c7a5415040da20c4167c9c..f4aad66baf0de5b33602ce08fccafb4038350136 100644 (file)
@@ -318,7 +318,7 @@ UsbSelectSetting (
   )\r
 {\r
   USB_INTERFACE_SETTING   *Setting;\r
   )\r
 {\r
   USB_INTERFACE_SETTING   *Setting;\r
-  UINT8                   Index;\r
+  UINTN                   Index;\r
 \r
   //\r
   // Locate the active alternate setting\r
 \r
   //\r
   // Locate the active alternate setting\r