Skip to content

Commit aa2165e

Browse files
authored
Ensure compatibility with camlzip versions before 1.12 (#1610)
1 parent bff05c4 commit aa2165e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bap-byteweight.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ depends: [
1212
"dune" {>= "3.1"}
1313
"bap-signatures" {= version}
1414
"bap-std" {= version}
15-
"camlzip" {>= "1.12" & < "2.0"}
15+
"camlzip" {>= "1.0" & < "2.0"}
1616
"core_kernel" {>= "v0.14" & < "v0.16"}
1717
"bap-common" {= version}
1818
"ppx_bap" {= version}

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
(depends
284284
(bap-signatures (= :version))
285285
(bap-std (= :version))
286-
(camlzip (and (>= 1.12) (< 2.0)))
286+
(camlzip (and (>= 1.0) (< 2.0)))
287287
(core_kernel (and (>= v0.14) (< v0.16)))
288288
(bap-common (= :version))
289289
(ppx_bap (= :version))

lib/bap_byteweight/bap_byteweight_signatures.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ let update_or_fail ?compiler target data payload path =
109109
let path = make_entry ?compiler target data in
110110
let data = Bytes.unsafe_to_string (data.save payload) in
111111
Zip.add_entry data zip path;
112-
List.iter entries ~f:(fun ({Zip.filename; comment; mtime},data) ->
112+
List.iter entries ~f:(fun ({Zip.filename; comment; mtime; _},data) ->
113113
Zip.add_entry data zip filename ~comment ~mtime)
114114

115115
let copy input output =

0 commit comments

Comments
 (0)