Skip to content

Commit

Permalink
Index of out of bounds in Rust when building nullable dependencies fo…
Browse files Browse the repository at this point in the history
…r RNGLR (#69)
  • Loading branch information
woutersl committed May 11, 2020
1 parent df715ac commit 86ee02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime-rust/src/parsers/rnglr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ impl<'l, 'a: 'l> RNGLRParser<'l, 'a> {
i += 1;
}
LR_OP_CODE_BASE_ADD_NULLABLE_VARIABLE => {
result.push(production.bytecode[i + 1] as usize);
result.push(production.bytecode[i] as usize);
i += 1;
}
_ => {
Expand Down

0 comments on commit 86ee02e

Please sign in to comment.