summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-07 21:18:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-03-07 21:18:02 -0800
commit9407880de631fb4e9f8caa0c746e4d39f40be91d (patch)
treef24fd1e1ed75184abd5d2710a93a4b9a889a3d94 /src
parentf99a4155e9221922a8f50646507cd3cb38e02376 (diff)
downloadbinaryen-9407880de631fb4e9f8caa0c746e4d39f40be91d.tar.gz
binaryen-9407880de631fb4e9f8caa0c746e4d39f40be91d.tar.bz2
binaryen-9407880de631fb4e9f8caa0c746e4d39f40be91d.zip
be more precise in br_table parsing
Diffstat (limited to 'src')
-rw-r--r--src/wasm-s-parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index 5768f5dcf..1cd614c1d 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -559,7 +559,7 @@ public:
case 'b': {
if (str[1] == 'l') return makeBlock(s);
if (str[1] == 'r') {
- if (str[3] == 't') return makeBreakTable(s);
+ if (str[2] == '_' && str[3] == 't') return makeBreakTable(s);
return makeBreak(s);
}
abort_on(str);