author | ecalot
<ecalot> 2006-02-08 04:28:44 UTC |
committer | ecalot
<ecalot> 2006-02-08 04:28:44 UTC |
parent | d67e0a7b5c86041abea5c55e21e3264f4e4763ac |
PR/src/lib/compression/lzg_compress.c | +1 | -1 |
PR/src/lib/compression/lzg_decompress.c | +1 | -1 |
diff --git a/PR/src/lib/compression/lzg_compress.c b/PR/src/lib/compression/lzg_compress.c index a273cdc..e336535 100644 --- a/PR/src/lib/compression/lzg_compress.c +++ b/PR/src/lib/compression/lzg_compress.c @@ -177,7 +177,7 @@ void compressLzg(const unsigned char* input2, int inputSize, unsigned char* output, int *outputSize) { int iCursor = 0, oCursor = 0; - unsigned char* input=malloc(inputSize+WIN_SIZE); + unsigned char* input=(unsigned char*)malloc(inputSize+WIN_SIZE); /* Create ghost window filled with zeros before input data: */ memset(input, 0, WIN_SIZE); diff --git a/PR/src/lib/compression/lzg_decompress.c b/PR/src/lib/compression/lzg_decompress.c index ede171a..348b321 100644 --- a/PR/src/lib/compression/lzg_decompress.c +++ b/PR/src/lib/compression/lzg_decompress.c @@ -88,7 +88,7 @@ int expandLzg(const unsigned char* input, int inputSize, /* ignore the first 1024 bytes */ *outputSize=oCursor-LZG_WINDOW_SIZE; - *output2=malloc(*outputSize); + *output2=(unsigned char*)malloc(*outputSize); for(iCursor=LZG_WINDOW_SIZE;iCursor<oCursor;iCursor++) (*output2)[iCursor-LZG_WINDOW_SIZE]=output[iCursor];