Avoid some random compiler warnings on various platforms.

This commit is contained in:
Mark Adler
2016-12-30 22:05:05 -08:00
parent fb26fc427f
commit 8f147c3d12
6 changed files with 14 additions and 12 deletions

View File

@@ -188,7 +188,7 @@ unsigned short FAR *work;
extra = lext;
match = 257;
break;
case DISTS:
default: /* DISTS */
base = dbase;
extra = dext;
match = 0;
@@ -214,7 +214,7 @@ unsigned short FAR *work;
for (;;) {
/* create table entry */
here.bits = (unsigned char)(len - drop);
if (work[sym] + 1 < match) {
if (work[sym] + 1U < match) {
here.op = (unsigned char)0;
here.val = work[sym];
}