From 0978bd0dc1084b2c1c558244bb247a4194143cc5 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Thu, 24 Nov 2016 10:18:19 +0800 Subject: 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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Jiewen Yao --- MdeModulePkg/Universal/EbcDxe/EbcDebugger/Edb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg') 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) { -- cgit v1.2.3