git » fp-git.git » commit b36c9f3

fixed problem with Power5 - OpenPower portability

author ecalot
2006-06-26 17:58:10 UTC
committer ecalot
2006-06-26 17:58:10 UTC
parent 495ac78bc14368fab06d2604ef0201373082c076

fixed problem with Power5 - OpenPower portability

PR/src/lib/compression/rle_compress.c +3 -3

diff --git a/PR/src/lib/compression/rle_compress.c b/PR/src/lib/compression/rle_compress.c
index f0c89db..e972985 100644
--- a/PR/src/lib/compression/rle_compress.c
+++ b/PR/src/lib/compression/rle_compress.c
@@ -38,14 +38,14 @@ rle_compress.c: Princed Resources : Image Compression Library
 void compressRle(const unsigned char* input, int inputSize,
                  unsigned char* output, int *outputSize) {
 	/* Declare pointers */
-	unsigned char* cursorData        = output;
-	char*          counter;
+	unsigned char*       cursorData  = output;
+	signed char*         counter;
 	const unsigned char* cursorPix   = input;
 	const unsigned char* imgEnd      = input+inputSize;
 
 	while (cursorPix<imgEnd) {
 		/* Step 1: Create counter */
-		counter=(char*)(cursorData++);
+		counter=(signed char*)(cursorData++);
 		*counter=-1;
 
 		/* Step 2: Look and copy the string until more than two repeated bytes are found */