Skip to content

Commit

Permalink
Update exercises/practice/circular-buffer/.meta/proof.ci.wat
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Jackman <glenn.jackman@gmail.com>
  • Loading branch information
bushidocodes and glennj authored Nov 24, 2023
1 parent d11433b commit 6bd4db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/circular-buffer/.meta/proof.ci.wat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
;; @returns {i32} 0 on success or -1 on error
;;
(func (export "init") (param $newCapacity i32) (result i32)
;; a WebAssembly page is 4096 bytes, so up to 1024 i32s
;; a WebAssembly page is 64KiB, so up to 16384 i32s
(if (i32.gt_s (local.get $newCapacity) (i32.const 16384)) (then
(return (i32.const -1))
))
Expand Down

0 comments on commit 6bd4db7

Please sign in to comment.