Clarify Section 8.

* The phrase "difference between these distances" can either refer to
the conceptual difference (i.e. they hae different semantic meaning)
or to the mathematical difference (i.e. use substraction for the two).
Instead, just remove the sentence since the equations below make it
clear what we're supposed to do here.
This commit is contained in:
Joe Tsai 2015-10-29 09:44:23 -07:00
parent 2ffe45bd67
commit ff3897df2d

View File

@ -1277,10 +1277,9 @@ At any given point during decoding the compressed data, a reference
to a duplicated string in the uncompressed data produced so far has a maximum to a duplicated string in the uncompressed data produced so far has a maximum
backward distance value, which is the minimum of the window size and backward distance value, which is the minimum of the window size and
the number of uncompressed bytes produced. However, decoding a distance the number of uncompressed bytes produced. However, decoding a distance
from the compressed stream, as described in section 4, can produce from the compressed stream, as described in Section 4., can produce
distances that are greater than this maximum allowed value. The distances that are greater than this maximum allowed value. In this case,
difference between these distances and the first invalid distance the distance is treated as a reference to a word in the static dictionary
value is treated as reference to a word in the static dictionary
given in Appendix A. The copy length for a static dictionary reference given in Appendix A. The copy length for a static dictionary reference
must be between 4 and 24. The static dictionary has three parts: must be between 4 and 24. The static dictionary has three parts:
@ -1325,7 +1324,7 @@ follows:
The string copied to the uncompressed stream is computed by applying the The string copied to the uncompressed stream is computed by applying the
transformation to the base dictionary word. If transform_id is transformation to the base dictionary word. If transform_id is
greater than 120 or length is smaller than 4 or greater than 24, then greater than 120, or the length is smaller than 4 or greater than 24, then
the compressed stream should be rejected as invalid. the compressed stream should be rejected as invalid.
Each word transformation has the following form: Each word transformation has the following form: