From: jljusten Date: Fri, 11 Apr 2008 23:31:48 +0000 (+0000) Subject: Remove ambiguous auto-increment usage. (gcc warning) X-Git-Tag: edk2-stable201903~21145 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e1a09a0eaa2de7bb9cd41c98e2f5fa383fb7a401;hp=02d99367c78526067520ef88ec4fe0d98ad1fb1d 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 --- 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);