summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c')
-rw-r--r--MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c b/MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
index f60691da40..e728175a5c 100644
--- a/MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
+++ b/MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
@@ -85,6 +85,7 @@ SetMemN (
{
if (sizeof (UINTN) == sizeof (UINT64)) {
return SetMem64 (Buffer, Length, (UINT64)Value);
+ } else {
+ return SetMem32 (Buffer, Length, (UINT32)Value);
}
- return SetMem32 (Buffer, Length, (UINT32)Value);
}