summaryrefslogtreecommitdiff
path: root/libtiff/tif_lzw.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtiff/tif_lzw.c')
-rw-r--r--libtiff/tif_lzw.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libtiff/tif_lzw.c b/libtiff/tif_lzw.c
index d5eada58..be43e54f 100644
--- a/libtiff/tif_lzw.c
+++ b/libtiff/tif_lzw.c
@@ -1,4 +1,4 @@
-/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_lzw.c,v 1.70 1996/01/10 19:33:05 sam Exp $ */
+/* $Header: /usr/people/sam/tiff/libtiff/RCS/tif_lzw.c,v 1.72 1997/01/27 19:36:58 sam Exp $ */
/*
* Copyright (c) 1988-1996 Sam Leffler
@@ -191,7 +191,7 @@ static int
LZWSetupDecode(TIFF* tif)
{
LZWDecodeState* sp = DecoderState(tif);
- static char module[] = " LZWSetupDecode";
+ static const char module[] = " LZWSetupDecode";
int code;
assert(sp != NULL);
@@ -644,7 +644,7 @@ static int
LZWSetupEncode(TIFF* tif)
{
LZWEncodeState* sp = EncoderState(tif);
- static char module[] = "LZWSetupEncode";
+ static const char module[] = "LZWSetupEncode";
assert(sp != NULL);
sp->enc_hashtab = (hash_t*) _TIFFmalloc(HSIZE*sizeof (hash_t));
@@ -782,10 +782,6 @@ LZWEncode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
if (h == 0)
disp = 1;
do {
-#ifndef _WINDOWS
- if ((hp -= disp) < sp->enc_hashtab)
- hp += HSIZE;
-#else
/*
* Avoid pointer arithmetic 'cuz of
* wraparound problems with segments.
@@ -793,7 +789,6 @@ LZWEncode(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s)
if ((h -= disp) < 0)
h += HSIZE;
hp = &sp->enc_hashtab[h];
-#endif
if (hp->hash == fcode) {
ent = hp->code;
goto hit;