diff options
author | Star Zeng <star.zeng@intel.com> | 2013-12-02 10:18:59 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-12-02 10:18:59 +0000 |
commit | b5bd21b01293fbc069008ebf6799ac23d3b05466 (patch) | |
tree | 5812fb464183621cbcfcb1250063d258c2a2f6f0 /MdeModulePkg | |
parent | 68fc0c7319d9c72e2f2e7fffdf9e1e8fb1e272d1 (diff) | |
download | edk2-platforms-b5bd21b01293fbc069008ebf6799ac23d3b05466.tar.xz |
MdeModulePkg Pcd: Refine the code to avoid error report.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14924 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Service.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Universal/PCD/Pei/Service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index a9c4c10951..b082f0a6de 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -98,7 +98,7 @@ GetPcdType ( case PCD_DATUM_TYPE_POINTER:
return EFI_PCD_TYPE_PTR;
case PCD_DATUM_TYPE_UINT8:
- if (LocalTokenNumber & PCD_DATUM_TYPE_UINT8_BOOLEAN) {
+ if ((LocalTokenNumber & PCD_DATUM_TYPE_UINT8_BOOLEAN) == PCD_DATUM_TYPE_UINT8_BOOLEAN) {
return EFI_PCD_TYPE_BOOL;
} else {
return EFI_PCD_TYPE_8;
diff --git a/MdeModulePkg/Universal/PCD/Pei/Service.c b/MdeModulePkg/Universal/PCD/Pei/Service.c index a4e35c2792..4fb8b4a687 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Service.c +++ b/MdeModulePkg/Universal/PCD/Pei/Service.c @@ -72,7 +72,7 @@ GetPcdType ( case PCD_DATUM_TYPE_POINTER:
return EFI_PCD_TYPE_PTR;
case PCD_DATUM_TYPE_UINT8:
- if (LocalTokenNumber & PCD_DATUM_TYPE_UINT8_BOOLEAN) {
+ if ((LocalTokenNumber & PCD_DATUM_TYPE_UINT8_BOOLEAN) == PCD_DATUM_TYPE_UINT8_BOOLEAN) {
return EFI_PCD_TYPE_BOOL;
} else {
return EFI_PCD_TYPE_8;
|