mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/EbcDxe: rebase to ARRAY_SIZE()
Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Feng Tian <feng.tian@Intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
bce1d8a888
commit
b643f29c51
|
@ -4216,7 +4216,7 @@ ExecuteDataManip (
|
|||
//
|
||||
DataManipDispatchTableIndex = (Opcode & OPCODE_M_OPCODE) - OPCODE_NOT;
|
||||
if ((DataManipDispatchTableIndex < 0) ||
|
||||
(DataManipDispatchTableIndex >= sizeof (mDataManipDispatchTable) / sizeof (mDataManipDispatchTable[0]))) {
|
||||
(DataManipDispatchTableIndex >= ARRAY_SIZE (mDataManipDispatchTable))) {
|
||||
EbcDebugSignalException (
|
||||
EXCEPT_EBC_INVALID_OPCODE,
|
||||
EXCEPTION_FLAG_ERROR,
|
||||
|
|
Loading…
Reference in New Issue