Skip to content

Commit a4ea5b7

Browse files
authored
Merge pull request #740 from hacspec/fix-string-hash-ocaml-4
fix(engine/fstar): use `Base.String.hash` instead of `String.hash`
2 parents 22b75d5 + 6b2e2e6 commit a4ea5b7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/install_and_test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616
- uses: DeterminateSystems/nix-installer-action@main
17+
- uses: cachix/cachix-action@v15
18+
with:
19+
name: hax
20+
skipPush: true
1721
- uses: DeterminateSystems/magic-nix-cache-action@main
1822
- name: Build
1923
run: nix build -L
@@ -47,7 +51,6 @@ jobs:
4751
env:
4852
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
4953
run: |
50-
nix profile install nixpkgs#cachix nixpkgs#jq
5154
nix build .# .#fstar --json \
5255
| jq -r '.[].outputs | to_entries[].value' \
5356
| cachix push hax

engine/backends/fstar/fstar-surface-ast/z.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let of_t = Base.Int.to_string
55

66
let compare = String.compare
77
let pp_print = pp
8-
let hash = String.hash
8+
let hash = Base.String.hash
99

1010

1111
let to_int: String.t -> Base.Int.t = Base.Int.of_string

0 commit comments

Comments
 (0)