File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
packages/tezos-webassembly-interpreter/tezos-webassembly-interpreter.14.0 Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/src/lib_webassembly/util/chunked_byte_vector.ml b/src/lib_webassembly/util/chunked_byte_vector.ml
2+ index 0a0e829786..1b494f05b6 100644
3+ --- a/src/lib_webassembly/util/chunked_byte_vector.ml
4+ +++ b/src/lib_webassembly/util/chunked_byte_vector.ml
5+ @@ -26,7 +26,7 @@ module Chunk = struct
6+
7+ let of_bytes bytes =
8+ let chunk = alloc () in
9+ - for i = 0 to Int.max (Int64.to_int size) (Bytes.length bytes) - 1 do
10+ + for i = 0 to max (Int64.to_int size) (Bytes.length bytes) - 1 do
11+ Array1.set chunk i (Char.code (Bytes.get bytes i))
12+ done ;
13+ chunk
Original file line number Diff line number Diff line change @@ -13,12 +13,15 @@ depends: [
1313 "qcheck-alcotest" { with-test & >= "0.18" }
1414 "alcotest" { with-test & >= "1.5.0" }
1515]
16+ patches: [ "webassembly_for_ocaml12.diff" ]
1617build: [
1718 ["rm" "-r" "vendors"]
1819 ["dune" "build" "-p" name "-j" jobs]
1920 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
2021]
2122synopsis: "WebAssembly reference interpreter with tweaks for Tezos"
23+ extra-files:
24+ [ "webassembly_for_ocaml12.diff" "sha256=2ddce2cf01627bc2766bb5e751d06cb7d8019be1c8d30feba9f88214e9c95776" ]
2225url {
2326 src: "https://gitlab.com/tezos/tezos/-/archive/v14.0/tezos-v14.0.tar.bz2"
2427 checksum: [
You can’t perform that action at this time.
0 commit comments