Skip to content

Commit

Permalink
Ensure compatibility with camlzip versions before 1.12 (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmourad01 authored Aug 2, 2024
1 parent bff05c4 commit aa2165e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bap-byteweight.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ depends: [
"dune" {>= "3.1"}
"bap-signatures" {= version}
"bap-std" {= version}
"camlzip" {>= "1.12" & < "2.0"}
"camlzip" {>= "1.0" & < "2.0"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"bap-common" {= version}
"ppx_bap" {= version}
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
(depends
(bap-signatures (= :version))
(bap-std (= :version))
(camlzip (and (>= 1.12) (< 2.0)))
(camlzip (and (>= 1.0) (< 2.0)))
(core_kernel (and (>= v0.14) (< v0.16)))
(bap-common (= :version))
(ppx_bap (= :version))
Expand Down
2 changes: 1 addition & 1 deletion lib/bap_byteweight/bap_byteweight_signatures.ml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let update_or_fail ?compiler target data payload path =
let path = make_entry ?compiler target data in
let data = Bytes.unsafe_to_string (data.save payload) in
Zip.add_entry data zip path;
List.iter entries ~f:(fun ({Zip.filename; comment; mtime},data) ->
List.iter entries ~f:(fun ({Zip.filename; comment; mtime; _},data) ->
Zip.add_entry data zip filename ~comment ~mtime)

let copy input output =
Expand Down

0 comments on commit aa2165e

Please sign in to comment.