@grain/binaryen.ml 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.11.1](https://www.github.com/grain-lang/binaryen.ml/compare/v0.11.0...v0.11.1) (2022-01-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Make features work in 32-bit mode ([#123](https://www.github.com/grain-lang/binaryen.ml/issues/123)) ([e435c8b](https://www.github.com/grain-lang/binaryen.ml/commit/e435c8bd9f6619c42b82e53e5d1caa929b5d4ebf))
9
+
3
10
  ## [0.11.0](https://www.github.com/grain-lang/binaryen.ml/compare/v0.10.0...v0.11.0) (2022-01-13)
4
11
 
5
12
 
@@ -1,5 +1,5 @@
1
1
  opam-version: "2.0"
2
- version: "0.11.0"
2
+ version: "0.11.1"
3
3
  synopsis: "OCaml bindings for Binaryen"
4
4
  maintainer: "oscar@grain-lang.org"
5
5
  author: "Oscar Spencer"
@@ -12,7 +12,7 @@ build: [
12
12
  [ "dune" "build" "-p" name "-j" jobs ]
13
13
  ]
14
14
  depends: [
15
- "ocaml" {>= "4.12" < "4.13"}
15
+ "ocaml" {>= "4.12"}
16
16
  "dune" {>= "2.9.1"}
17
17
  "dune-configurator" {>= "2.9.1"}
18
18
  "js_of_ocaml" {>= "3.10.0"}
@@ -74,7 +74,9 @@ let get_features wasm_mod =
74
74
  feature :: split_features (feature lsr 1)
75
75
  | feature -> split_features (feature lsr 1)
76
76
  in
77
- split_features 0x80000000
77
+ (* Support 32-bit OCaml where integers are 31 bits *)
78
+ (* This supports up to 31 Binaryen features *)
79
+ split_features 0x40000000
78
80
 
79
81
  let set_features wasm_mod features =
80
82
  meth_call wasm_mod "setFeatures"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grain/binaryen.ml",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "OCaml bindings for Binaryen.",
5
5
  "author": "Oscar Spencer <oscar@grain-lang.org>",
6
6
  "license": "Apache-2.0",
@@ -85,7 +85,9 @@ let get_features wasm_mod =
85
85
  feature :: split_features (feature lsr 1)
86
86
  | feature -> split_features (feature lsr 1)
87
87
  in
88
- split_features 0x80000000
88
+ (* Support 32-bit OCaml where integers are 31 bits *)
89
+ (* This supports up to 31 Binaryen features *)
90
+ split_features 0x40000000
89
91
 
90
92
  external set_features : t -> int -> unit = "caml_binaryen_module_set_features"
91
93