Skip to content

Commit

Permalink
release 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed Jun 6, 2016
1 parent 850c46f commit d630b69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _oasis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OASISFormat: 0.4
Name: zstd
Version: 0.1
Version: 0.2
Synopsis: Bindings to zstd compression library
Authors: ygrek
Copyrights: (C) 2016 ygrek
Expand Down
4 changes: 2 additions & 2 deletions src/zstd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ let decompress orig ?dict s =
let dst = allocate_n char ~count:orig in
let r =
match dict with
| None -> do_decompress (to_voidp dst) (Size_t.of_int orig) s (Size_t.of_int @@ String.length s)
| None -> do_decompress (to_voidp dst) (Size_t.of_int orig) s (Size_t.of_int (String.length s))
| Some dict ->
let dlen = Size_t.of_int (String.length dict) in
bracket (create_dctx ()) free_dctx begin fun dctx ->
do_decompress_dict dctx (to_voidp dst) (Size_t.of_int orig) s (Size_t.of_int @@ String.length s) dict dlen
do_decompress_dict dctx (to_voidp dst) (Size_t.of_int orig) s (Size_t.of_int (String.length s)) dict dlen
end
in
check r;
Expand Down

0 comments on commit d630b69

Please sign in to comment.