summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-07 02:01:22 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-07 02:01:22 +0000
commite7cc9dcc375fc75df60303a56b439501d6f60082 (patch)
tree7c30bc0ec18b37d4348e952ba6661a851c1a76ac /MdeModulePkg
parent312e3bdfccc5b2dffa23fcc450a3cca51828009e (diff)
downloadedk2-platforms-e7cc9dcc375fc75df60303a56b439501d6f60082.tar.xz
Add (UINT16) static cast before passing UINT32 parameter to CreateDeviceNode
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11508 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
index 3236291520..fb84f65fd1 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
@@ -1158,7 +1158,7 @@ DevPathFromTextAcpiAdr (
AcpiAdr = (ACPI_ADR_DEVICE_PATH *) CreateDeviceNode (
ACPI_DEVICE_PATH,
ACPI_ADR_DP,
- sizeof (ACPI_ADR_DEVICE_PATH)
+ (UINT16) sizeof (ACPI_ADR_DEVICE_PATH)
);
ASSERT (AcpiAdr != NULL);