mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
68fc0c7319
commit
b5bd21b012
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue