mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
6bfd7ea7d6
commit
0978bd0dc1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue