Update to most recent parity-wasm (#21)

* Update to most recent parity-wasm

* fix validation
This commit is contained in:
Nikolay Volf 2018-01-26 18:35:12 +03:00 committed by Sergey Pepyakin
parent c1f05c822b
commit aa4c8fe3bb
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ keywords = ["wasm", "webassembly", "bytecode", "interpreter"]
exclude = [ "res/*", "spec/*" ]
[dependencies]
parity-wasm = "0.20"
parity-wasm = "0.23"
byteorder = "1.0"
[dev-dependencies]

View File

@ -500,7 +500,7 @@ impl Validator {
Ok(InstructionOutcome::ValidateNextInstruction)
}
fn validate_br_table(context: &mut FunctionValidationContext, table: &Vec<u32>, default: u32) -> Result<InstructionOutcome, Error> {
fn validate_br_table(context: &mut FunctionValidationContext, table: &[u32], default: u32) -> Result<InstructionOutcome, Error> {
let mut required_block_type = None;
{