From 15a2944afc76da6f3ea37fa6295937ec7a785bc5 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sun, 7 Dec 2008 22:35:34 +0000 Subject: [PATCH] Use BIT8-1 instead of UINT8_MAX. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6895 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/EfiLdr/TianoDecompress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DuetPkg/EfiLdr/TianoDecompress.c b/DuetPkg/EfiLdr/TianoDecompress.c index cac9938146..f2f37bd448 100644 --- a/DuetPkg/EfiLdr/TianoDecompress.c +++ b/DuetPkg/EfiLdr/TianoDecompress.c @@ -26,7 +26,6 @@ Abstract: #define MAXMATCH 256 #define THRESHOLD 3 #define CODE_BIT 16 -#define UINT8_MAX 0xff #define BAD_TABLE - 1 // @@ -614,7 +613,7 @@ Returns: (VOID) // // Process a Pointer // - CharC = (UINT16) (CharC - (UINT8_MAX + 1 - THRESHOLD)); + CharC = (UINT16) (CharC - (BIT8 - THRESHOLD)); BytesRemain = CharC;