Clarify Section 4.

* If NDIRECT is zero, then the paragraph reads "from 16 to 15", which
doesn't make much sense. Thus, add a conditional to avoid this minor
oddity.
This commit is contained in:
Joe Tsai 2015-10-29 09:42:00 -07:00
parent 185cb9eada
commit 2ffe45bd67

View File

@ -845,9 +845,10 @@ not pushed to the ring buffer of last distances.
If a special distance symbol resolves to a zero or negative value, the
stream should be rejected as invalid.
The next NDIRECT distance symbols, from 16 to 15 + NDIRECT, represent
distances from 1 to NDIRECT. Neither the distance special symbols, nor
the NDIRECT direct distance symbols are followed by any extra bits.
If NDIRECT is greater than zero, then the next NDIRECT distance symbols,
from 16 to 15 + NDIRECT, represent distances from 1 to NDIRECT.
Neither the special distance symbols, nor the NDIRECT direct distance
symbols are followed by any extra bits.
Distance symbols 16 + NDIRECT and greater all have extra bits, where the
number of extra bits for a distance symbol "dcode" is given by the