Skip to content

Commit

Permalink
Note power-of-2 requirement to match new design text
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewagner committed Sep 17, 2015
1 parent 5ef1a3a commit e2ff15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml-proto/src/spec/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ let init_memory ast =

let init m imports host =
assert (List.length imports = List.length m.it.Ast.imports);
assert (host.page_size > 0);
assert (host.page_size > 0 and Int.is_power_of_two host.page_size);
let {Ast.exports; globals; tables; funcs; memory; _} = m.it in
let mem = init_memory memory in
let func x = List.nth funcs x.it in
Expand Down

0 comments on commit e2ff15d

Please sign in to comment.