aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/node.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-13 14:24:55 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-13 14:28:10 +0100
commit5f07c9840ecaebd07b9685dc55539166a697eb6e (patch)
treeb83ccdcde54a64522a9ef231e9ffa147009961ab /lib/xixanta/src/node.rs
parentac8c477cf69a33bc3640437fd0287b53ca31b111 (diff)
downloadtools.nes-5f07c9840ecaebd07b9685dc55539166a697eb6e.tar.gz
tools.nes-5f07c9840ecaebd07b9685dc55539166a697eb6e.zip
parser: Fix crash on non-ASCII char literals
If the given char literal was not an ASCII one, there was the chance for the character iterator to mess things up. Hence, when checking the closing single quote, it might encounter a None value. This is simply mitigated my moving the check of ASCII alphanumeric before checking for the closing quote. Fixes: b1623996c76f ("Add support for character literals") Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/node.rs')
0 files changed, 0 insertions, 0 deletions