Skip to content

Commit

Permalink
Fix use of camlzip in byteweight (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmourad01 authored Jul 29, 2024
1 parent 95e8173 commit bff05c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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.0" & < "2.0"}
"camlzip" {>= "1.12" & < "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.0) (< 2.0)))
(camlzip (and (>= 1.12) (< 2.0)))
(core_kernel (and (>= v0.14) (< v0.16)))
(bap-common (= :version))
(ppx_bap (= :version))
Expand Down
5 changes: 2 additions & 3 deletions lib/bap_byteweight/bap_byteweight_signatures.ml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ 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; extra; comment; mtime},data) ->
Zip.add_entry data zip filename
~extra ~comment ~mtime)
List.iter entries ~f:(fun ({Zip.filename; comment; mtime},data) ->
Zip.add_entry data zip filename ~comment ~mtime)

let copy input output =
let len = 0x1000 in
Expand Down

0 comments on commit bff05c4

Please sign in to comment.