summaryrefslogtreecommitdiff
path: root/src/compression/lz77.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 07:17:51 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 07:17:51 (GMT)
commitcf5a1611319de27b365175a7202c2bbd4730846c (patch)
tree07b749f81948a9dc3c0bd09d2317ec37d49838b4 /src/compression/lz77.c
parent9d7e53f000baae40b1d942a4c63b66283907ff9b (diff)
Fix some MSVC and Inter C Compiler warnings.
Diffstat (limited to 'src/compression/lz77.c')
-rw-r--r--src/compression/lz77.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compression/lz77.c b/src/compression/lz77.c
index 77a17cf..5ea63cf 100644
--- a/src/compression/lz77.c
+++ b/src/compression/lz77.c
@@ -125,7 +125,7 @@ static void sort_strings(unsigned int *vals, int nvals,
nrepeat[i+m]=((unsigned int) (good_k)) | (((unsigned int) (repeat))<<8);
}
/* If no repetition was found for this value signal that here. */
- if (!nrepeat[i])
+ if (!nrepeat[i])
nrepeat[i+m]=257U; /* This is 1<<8 | 1 */
}
}
@@ -138,7 +138,7 @@ static void sort_strings(unsigned int *vals, int nvals,
{
output[i*2]=indices[i];
output[indices[i]*2+1]=i;
- }
+ }
free(nrepeat);
free(indices);
}
@@ -313,13 +313,13 @@ void Ptngc_comp_from_lz77(unsigned int *data, int ndata,
unsigned int *offsets, int noffsets,
unsigned int *vals, int nvals)
{
- (void)ndata;
- (void)nlens;
- (void)noffsets;
int i=0;
int joff=0;
int jdat=0;
int jlen=0;
+ (void)ndata;
+ (void)nlens;
+ (void)noffsets;
while (i<nvals)
{
unsigned int v=data[jdat++];
contact: Jan Huwald // Impressum