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>
/*++\r
\r
-Copyright (c) 2007, Intel Corporation\r
+Copyright (c) 2007 - 2016, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
// clear STEP flag in any condition.\r
//\r
- if (SystemContext.SystemContextEbc->Flags & VMFLAGS_STEP) {\r
- SystemContext.SystemContextEbc->Flags &= ~VMFLAGS_STEP;\r
+ if (SystemContext.SystemContextEbc->Flags & ((UINT64) VMFLAGS_STEP)) {\r
+ SystemContext.SystemContextEbc->Flags &= ~((UINT64) VMFLAGS_STEP);\r
}\r
\r
if (!Initialized) {\r