summaryrefslogtreecommitdiff
path: root/MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/PeiMemoryLib/SetMemWrapper.c')
-rw-r--r--MdePkg/Library/PeiMemoryLib/SetMemWrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/PeiMemoryLib/SetMemWrapper.c b/MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
index ea0a3e0106..f8c611285f 100644
--- a/MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
+++ b/MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
@@ -27,7 +27,7 @@
Fills a target buffer with a byte value, and returns the target buffer.
This function fills Length bytes of Buffer with Value, and returns Buffer.
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@param Buffer Memory to set.
@param Length Number of bytes to set.