From e1a09a0eaa2de7bb9cd41c98e2f5fa383fb7a401 Mon Sep 17 00:00:00 2001 From: jljusten Date: Fri, 11 Apr 2008 23:31:48 +0000 Subject: [PATCH] Remove ambiguous auto-increment usage. (gcc warning) (This code change is in sync with BaseTools TianoCompress code.) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5057 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Decompress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Decompress.c b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Decompress.c index 43446a37dd..d35d946d63 100644 --- a/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Decompress.c +++ b/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Decompress.c @@ -337,7 +337,8 @@ Returns: } while (Index <= 16) { - Weight[Index++] = (UINT16) (1U << (16 - Index)); + Weight[Index] = (UINT16) (1U << (16 - Index)); + Index++; } Index = (UINT16) (Start[TableBits + 1] >> JuBits);