diff options
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/BaseMemoryLib/SetMem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/SetMem.c b/MdePkg/Library/BaseMemoryLib/SetMem.c index 546e665512..32183d4393 100644 --- a/MdePkg/Library/BaseMemoryLib/SetMem.c +++ b/MdePkg/Library/BaseMemoryLib/SetMem.c @@ -46,7 +46,7 @@ InternalMemSetMem ( volatile UINT8 *Pointer;
Pointer = (UINT8*)Buffer;
- while (Length-- != 0) {
+ while (Length-- > 0) {
*(Pointer++) = Value;
}
return Buffer;
|