summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/DevicePathDxe
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2013-04-12 07:16:42 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2013-04-12 07:16:42 +0000
commit2d34b53ec303427a9d3966781029c58908421674 (patch)
tree2046003cb7f9e8a7cff5a2859ff6588977217bca /MdeModulePkg/Universal/DevicePathDxe
parent0c55190f40bff9d286f51d42b0275324497f7461 (diff)
downloadedk2-2d34b53ec303427a9d3966781029c58908421674.tar.gz
edk2-2d34b53ec303427a9d3966781029c58908421674.tar.bz2
edk2-2d34b53ec303427a9d3966781029c58908421674.zip
Fix build failure by adding UINT16 type cast.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14259 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DevicePathDxe')
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
index c061888280..f96bea1477 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
@@ -1683,7 +1683,7 @@ DevPathFromTextSAS (
} else if (StrCmp (LocationStr, L"Internal") == 0) {
Uint16 = 0;
} else {
- Uint16 = (Strtoi (LocationStr) & BIT0);
+ Uint16 = ((UINT16) Strtoi (LocationStr) & BIT0);
}
Info |= (Uint16 << 5);
@@ -1696,7 +1696,7 @@ DevPathFromTextSAS (
} else if (StrCmp (ConnectStr, L"Direct") == 0) {
Uint16 = 0;
} else {
- Uint16 = (Strtoi (ConnectStr) & (BIT0 | BIT1));
+ Uint16 = ((UINT16) Strtoi (ConnectStr) & (BIT0 | BIT1));
}
Info |= (Uint16 << 6);
@@ -1780,7 +1780,7 @@ DevPathFromTextSasEx (
} else if (StrCmp (LocationStr, L"Internal") == 0) {
Uint16 = 0;
} else {
- Uint16 = (Strtoi (LocationStr) & BIT0);
+ Uint16 = ((UINT16) Strtoi (LocationStr) & BIT0);
}
Info |= (Uint16 << 5);
@@ -1793,7 +1793,7 @@ DevPathFromTextSasEx (
} else if (StrCmp (ConnectStr, L"Direct") == 0) {
Uint16 = 0;
} else {
- Uint16 = (Strtoi (ConnectStr) & (BIT0 | BIT1));
+ Uint16 = ((UINT16) Strtoi (ConnectStr) & (BIT0 | BIT1));
}
Info |= (Uint16 << 6);