diff options
author | Yury Delendik <ydelendik@mozilla.com> | 2018-08-31 12:00:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-31 12:00:02 -0500 |
commit | 317d6e948d57c73dd6a181507f5e3d051bcae5d2 (patch) | |
tree | b17f9ba96204deb63cb1cf866ca3e65d9c1c3380 /src/wasm/wasm-binary.cpp | |
parent | 02ae5a6643a17ea02f5fa5f2e91f0497b571ab21 (diff) | |
download | binaryen-317d6e948d57c73dd6a181507f5e3d051bcae5d2.tar.gz binaryen-317d6e948d57c73dd6a181507f5e3d051bcae5d2.tar.bz2 binaryen-317d6e948d57c73dd6a181507f5e3d051bcae5d2.zip |
Fix findField (#1660)
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index a7bc9c91e..6af46cbd1 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -1200,6 +1200,8 @@ void WasmBinaryBuilder::readSourceMapHeader() { } } else if (matching && name[pos] == ch) { ++pos; + } else if (matching) { + matching = false; } } skipWhitespace(); |