]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove ambiguous auto-increment usage. (gcc warning)
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 11 Apr 2008 23:31:48 +0000 (23:31 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 11 Apr 2008 23:31:48 +0000 (23:31 +0000)
(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

index 43446a37dd70321e0e0a4522eae9af27f525fc5e..d35d946d63663f3a54fd8a5e49532784cfdb987d 100644 (file)
@@ -337,7 +337,8 @@ Returns:
   }\r
 \r
   while (Index <= 16) {\r
-    Weight[Index++] = (UINT16) (1U << (16 - Index));\r
+    Weight[Index] = (UINT16) (1U << (16 - Index));\r
+    Index++;\r
   }\r
 \r
   Index = (UINT16) (Start[TableBits + 1] >> JuBits);\r