diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-11-24 10:18:19 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-11-25 13:34:13 +0800 |
commit | 0978bd0dc1084b2c1c558244bb247a4194143cc5 (patch) | |
tree | 242ff4e6c18de5f431cd0e76970b6daec4080d4d /MdeModulePkg | |
parent | 6bfd7ea7d65af28910779b9c72ff2e5fd3a2a54e (diff) | |
download | edk2-platforms-0978bd0dc1084b2c1c558244bb247a4194143cc5.tar.xz |
MdeModulePkg/EbcDebugger: Operands of same size for bitwise operation
Operands in a bitwise operation should have the same size to eliminate
unexpected results.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c index e0b85c70ef..9e44026ab9 100644 --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c @@ -1,6 +1,6 @@ /*++
-Copyright (c) 2007, Intel Corporation
+Copyright (c) 2007 - 2016, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -360,8 +360,8 @@ Returns: //
// clear STEP flag in any condition.
//
- if (SystemContext.SystemContextEbc->Flags & VMFLAGS_STEP) {
- SystemContext.SystemContextEbc->Flags &= ~VMFLAGS_STEP;
+ if (SystemContext.SystemContextEbc->Flags & ((UINT64) VMFLAGS_STEP)) {
+ SystemContext.SystemContextEbc->Flags &= ~((UINT64) VMFLAGS_STEP);
}
if (!Initialized) {
|