summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inftrees.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inftrees.c b/inftrees.c
index 873da59..3781399 100644
--- a/inftrees.c
+++ b/inftrees.c
@@ -208,8 +208,8 @@ unsigned short FAR *work;
208 mask = used - 1; /* mask for comparing low */ 208 mask = used - 1; /* mask for comparing low */
209 209
210 /* check available table space */ 210 /* check available table space */
211 if ((type == LENS && used >= ENOUGH_LENS) || 211 if ((type == LENS && used > ENOUGH_LENS) ||
212 (type == DISTS && used >= ENOUGH_DISTS)) 212 (type == DISTS && used > ENOUGH_DISTS))
213 return 1; 213 return 1;
214 214
215 /* process all codes and make table entries */ 215 /* process all codes and make table entries */
@@ -277,8 +277,8 @@ unsigned short FAR *work;
277 277
278 /* check for enough space */ 278 /* check for enough space */
279 used += 1U << curr; 279 used += 1U << curr;
280 if ((type == LENS && used >= ENOUGH_LENS) || 280 if ((type == LENS && used > ENOUGH_LENS) ||
281 (type == DISTS && used >= ENOUGH_DISTS)) 281 (type == DISTS && used > ENOUGH_DISTS))
282 return 1; 282 return 1;
283 283
284 /* point entry in root table to sub-table */ 284 /* point entry in root table to sub-table */