diff options
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c b/MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c index 4b9d2413eb..620b69aef4 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c +++ b/MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c @@ -54,8 +54,8 @@ SetMem32 ( {
ASSERT (Buffer != NULL);
ASSERT (Length <= MAX_ADDRESS - (UINTN)Buffer + 1);
- ASSERT ((((UINTN)Buffer) & 1) != 0);
- ASSERT ((Length & 1) != 0);
+ ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) != 0);
+ ASSERT ((Length & (sizeof (Value) - 1)) != 0);
if ((Length /= sizeof (Value)) == 0) {
return Buffer;
|