summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/EbcDxe/Ipf
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-13 09:07:59 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-13 09:07:59 +0000
commit366219abde17df91986cea33d9ea198cd9d12f03 (patch)
tree082abf75239948467e49c778be92ad8a9251cf0a /MdeModulePkg/Universal/EbcDxe/Ipf
parent8e3bc754c50ba72996de1bf8c29b34fa7b36e56d (diff)
downloadedk2-platforms-366219abde17df91986cea33d9ea198cd9d12f03.tar.xz
Fix the prediction warnings in EBC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5195 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/EbcDxe/Ipf')
-rw-r--r--MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c b/MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c
index 83d596c4c7..0f46e6db79 100644
--- a/MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c
+++ b/MdeModulePkg/Universal/EbcDxe/Ipf/EbcSupport.c
@@ -591,7 +591,7 @@ EbcCreateThunks (
// to the address of the entry point of the interpreter.
//
Ptr += 16;
- if (Flags & FLAG_THUNK_ENTRY_POINT) {
+ if ((Flags & FLAG_THUNK_ENTRY_POINT) != 0) {
Addr = (UINT64) ExecuteEbcImageEntryPoint;
} else {
Addr = (UINT64) EbcInterpret;
@@ -746,13 +746,13 @@ WriteBundle (
//
// Verify no more than 5 bits in template
//
- if (Template &~0x1F) {
+ if ((Template &~0x1F) != 0) {
return EFI_INVALID_PARAMETER;
}
//
// Verify max of 41 bits used in code
//
- if ((Slot0 | Slot1 | Slot2) &~0x1ffffffffff) {
+ if (((Slot0 | Slot1 | Slot2) &~0x1ffffffffff) != 0) {
return EFI_INVALID_PARAMETER;
}