diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2023-12-07 01:18:06 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2023-12-07 01:18:06 +0100 |
| commit | b0292c766fe68482648023881639266f696fe472 (patch) | |
| tree | 5004ea717a16a23f37c87d0467021879ddc0b6d9 /crates/parser | |
| parent | 0cf77f7347d551437baff6bfb7c5768930c50198 (diff) | |
feat: improve lable/block handling, add support for more arithmetic opcodes
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/src/conversion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index c80a7fc..432909c 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -129,7 +129,7 @@ pub fn process_operators<'a>( let targets = targets .targets() .collect::<Result<Vec<u32>, wasmparser::BinaryReaderError>>()?; - instructions.push(Instruction::BrTable(def, targets.len() as u32)); + instructions.push(Instruction::BrTable(def, targets.len())); instructions.extend(targets.into_iter().map(Instruction::BrLabel)); continue; } |
