summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DuetPkg/EfiLdr/TianoDecompress.c3
1 files changed, 1 insertions, 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;