Skip to content

Commit

Permalink
Merge pull request #235 from bytecodealliance/update-wat
Browse files Browse the repository at this point in the history
chore: Update wat
  • Loading branch information
saulecabrera authored Oct 6, 2023
2 parents 0b06c85 + c9f024e commit b64c789
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 285 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
- name: Install deps
run: |
bundle config unset deployment
bundle add ruby_memcheck --version '~> 1.3.1' & # avoid usage in Gemfile bc it pulls in nokogiri
sudo apt-get install -y valgrind &
wait
bundle add ruby_memcheck --version '~> 1.3.1' # avoid usage in Gemfile bc it pulls in nokogiri
sudo apt-get update
sudo apt-get install -y valgrind
bundle config set deployment true
- name: Run "mem:check" task
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/fuel.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
(func $fibonacci (param $n i32) (result i32)
(if
(i32.lt_s (local.get $n) (i32.const 2))
(return (local.get $n))
(then
(return (local.get $n))
)
)
(i32.add
(call $fibonacci (i32.sub (local.get $n) (i32.const 1)))
Expand Down
Loading

0 comments on commit b64c789

Please sign in to comment.