Skip to content

Commit

Permalink
Merge pull request #34 from mirage/fix-state
Browse files Browse the repository at this point in the history
Fixed bug about state
  • Loading branch information
dinosaure committed Oct 18, 2017
2 parents be2d68b + 4091ea3 commit a6f6b2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/decompress.ml
Expand Up @@ -2613,7 +2613,7 @@ struct
src dst t) src dst t
else k state.dictionary src dst t
| 16 ->
let aux n src dst t =
let aux state n src dst t =
if state.idx + n + 3 > state.max
then error t Invalid_dictionary
else begin
Expand All @@ -2628,9 +2628,9 @@ struct
end
in
KDictionary.get_bits 2 aux src dst t
KDictionary.get_bits 2 (aux state) src dst t
| 17 ->
let aux n src dst t =
let aux state n src dst t =
if state.idx + n + 3 > state.max
then error t Invalid_dictionary
else begin
Expand All @@ -2642,7 +2642,7 @@ struct
end
in
KDictionary.get_bits 3 aux src dst t
KDictionary.get_bits 3 (aux state) src dst t
| 18 ->
let aux state n src dst t =
if state.idx + n + 11 > state.max
Expand Down

0 comments on commit a6f6b2b

Please sign in to comment.