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:
Hao Wu 2016-11-24 10:18:19 +08:00
parent 6bfd7ea7d6
commit 0978bd0dc1
1 changed files with 3 additions and 3 deletions

View File

@ -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) {