diff options
author | Ben Smith <binji@chromium.org> | 2016-05-05 14:42:44 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-05-05 14:47:57 -0700 |
commit | ecc49ca5c193db3279a0adc8b9c7e2c631fa3ced (patch) | |
tree | 9526377ba65f60b644a1844c6ab2130326d04e12 /src/wasm-binary-reader-ast.c | |
parent | 8f0ab76f7b898f257e09f32f6a8655e56fb08539 (diff) | |
download | wabt-ecc49ca5c193db3279a0adc8b9c7e2c631fa3ced.tar.gz wabt-ecc49ca5c193db3279a0adc8b9c7e2c631fa3ced.tar.bz2 wabt-ecc49ca5c193db3279a0adc8b9c7e2c631fa3ced.zip |
fix bug when displaying source lines for errors
When scanning for the the file offset of a source line, when the source
is a file, it reuses the same code for scanning a memory buffer. If the
line is not found in the buffer, it returns WASM_ERROR, which is
expected. But it also needs to update the currently found line, so we
can keep scanning.
Diffstat (limited to 'src/wasm-binary-reader-ast.c')
0 files changed, 0 insertions, 0 deletions