git » fp-git.git » commit 9b622c3

removed unused variable

author ecalot
2005-03-09 21:23:03 UTC
committer ecalot
2005-03-09 21:23:03 UTC
parent 7e6aa9f6471ce8f0cf77623b720ccf2905d0a9a3

removed unused variable

stuff/contest/lzg/uncompress.c +2 -2

diff --git a/stuff/contest/lzg/uncompress.c b/stuff/contest/lzg/uncompress.c
index fa0f833..a27b469 100644
--- a/stuff/contest/lzg/uncompress.c
+++ b/stuff/contest/lzg/uncompress.c
@@ -35,7 +35,7 @@ unsigned char popBit(unsigned char *byte) {
 void expandLzg(const unsigned char* array, int arraySize, 
 								unsigned char* img, int *imageSize) {
 	char k;
-	int location,h,cursor=0,pos=0;
+	int location,cursor=0,pos=0;
 	unsigned char maskbyte,rep;
 
 	/* img is an unsigned char[] sized 0x400 */
@@ -68,7 +68,7 @@ void expandLzg(const unsigned char* array, int arraySize,
 					 * if the image is stored in an array of 1024 x n bytes
 					 * "h" is the height and "location" is the width
 					 */
-					img[cursor]=img[(cursor-location)-((cursor-location)%MAX_MXD_SIZE_IN_LZG)+location];
+					img[cursor]=img[cursor-((cursor-location)%MAX_MXD_SIZE_IN_LZG)];
 
 					cursor++;
 					location++;