summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-07 23:59:51 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-07 23:59:51 +0000
commitdaa6553a39c528210f7afc84f437716b60514c8b (patch)
tree4269b43870a5aec6094499d167a6c7c2522c3f9a /MdePkg
parentf4ec40abd6533850edb914de59b7ef5f1c1c1bb6 (diff)
downloadedk2-daa6553a39c528210f7afc84f437716b60514c8b.zip
edk2-daa6553a39c528210f7afc84f437716b60514c8b.tar.gz
edk2-daa6553a39c528210f7afc84f437716b60514c8b.tar.bz2
Use BIT8-1 insetad of UINT8_MAX
Fix a typo in a comment git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6910 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Library/UefiLib.h2
-rw-r--r--MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/UefiLib.h
index 1d8a8e1..b6750e4 100644
--- a/MdePkg/Include/Library/UefiLib.h
+++ b/MdePkg/Include/Library/UefiLib.h
@@ -98,7 +98,7 @@ typedef struct {
Macro that returns the a pointer to the next EFI_MEMORY_DESCRIPTOR in an array
returned from GetMemoryMap().
- @param MemoryDescriptor Pointer tot he current EFI_MEMORY_DESCRIPTOR.
+ @param MemoryDescriptor A pointer to an EFI_MEMORY_DESCRIPTOR.
@param Size The size, in bytes, of the current EFI_MEMORY_DESCRIPTOR.
diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
index 98492c8..21d35e2 100644
--- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
+++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c
@@ -604,7 +604,7 @@ Decode (
//
// Process a Pointer
//
- CharC = (UINT16) (CharC - (UINT8_MAX + 1 - THRESHOLD));
+ CharC = (UINT16) (CharC - (BIT8 - THRESHOLD));
//
// Get string length