summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
authorYury Delendik <ydelendik@mozilla.com>2018-08-31 12:00:02 -0500
committerGitHub <noreply@github.com>2018-08-31 12:00:02 -0500
commit317d6e948d57c73dd6a181507f5e3d051bcae5d2 (patch)
treeb17f9ba96204deb63cb1cf866ca3e65d9c1c3380 /src/wasm/wasm-binary.cpp
parent02ae5a6643a17ea02f5fa5f2e91f0497b571ab21 (diff)
downloadbinaryen-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.cpp2
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();