diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-07 04:48:53 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-07 04:48:53 +0000 |
commit | 56385d49874f4b7cee6c9a0652c6b7c10aff0e2f (patch) | |
tree | 8292398b3b2fd47eb414bb8da64dda2ce36a73db /MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c | |
parent | 14e436f9b09c796c4567929984ac7ce5300efb21 (diff) | |
download | edk2-platforms-56385d49874f4b7cee6c9a0652c6b7c10aff0e2f.tar.xz |
1. fix the wrong description, change "target the buffer" to "the target buffer"
2. fix ICC/GYGGCC build failure on ScanMemN() in X64 arch, it can not reach the last sentence when UINTN is equal to UINT64.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9530 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c')
-rw-r--r-- | MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c b/MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c index 9efca5e02a..ecf1bdd2a7 100644 --- a/MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c +++ b/MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c @@ -29,7 +29,7 @@ Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value
in the target buffer.
- This function searches target the buffer specified by Buffer and Length from the lowest
+ This function searches the target buffer specified by Buffer and Length from the lowest
address to the highest address for an 8-bit value that matches Value. If a match is found,
then a pointer to the matching byte in the target buffer is returned. If no match is found,
then NULL is returned. If Length is 0, then NULL is returned.
@@ -65,7 +65,7 @@ ScanMem8 ( Scans a target buffer for a UINTN sized value, and returns a pointer to the matching
UINTN sized value in the target buffer.
- This function searches target the buffer specified by Buffer and Length from the lowest
+ This function searches the target buffer specified by Buffer and Length from the lowest
address to the highest address for a UINTN sized value that matches Value. If a match is found,
then a pointer to the matching byte in the target buffer is returned. If no match is found,
then NULL is returned. If Length is 0, then NULL is returned.
@@ -92,7 +92,8 @@ ScanMemN ( {
if (sizeof (UINTN) == sizeof (UINT64)) {
return ScanMem64 (Buffer, Length, (UINT64)Value);
+ } else {
+ return ScanMem32 (Buffer, Length, (UINT32)Value);
}
- return ScanMem32 (Buffer, Length, (UINT32)Value);
}
|