summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael <mbebenita@Michaels-MacBook-Pro-4.local>2016-02-22 15:11:09 -0800
committerMichael <mbebenita@Michaels-MacBook-Pro-4.local>2016-02-22 15:20:23 -0800
commitaf0f6ef999e8ddf9c168b697710fd313883e8807 (patch)
tree5790caa589d90349a0913f1322a6e42d7db8a043 /src
parent75a6357e2b57a908f955e4cc7b3e9e627524f385 (diff)
downloadbinaryen-af0f6ef999e8ddf9c168b697710fd313883e8807.tar.gz
binaryen-af0f6ef999e8ddf9c168b697710fd313883e8807.tar.bz2
binaryen-af0f6ef999e8ddf9c168b697710fd313883e8807.zip
Bug fix and adds printing / parsing tests.
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 cf900ce28..a6b8e61b6 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -205,7 +205,7 @@ private:
input++;
return allocator.alloc<Element>()->setString(IString(str.c_str(), false), dollared);
}
- while (input[0] && !isspace(input[0]) && input[0] != ')') input++;
+ while (input[0] && !isspace(input[0]) && input[0] != ')' && input[0] != '(') input++;
char temp = input[0];
input[0] = 0;
auto ret = allocator.alloc<Element>()->setString(IString(start, false), dollared); // TODO: reuse the string here, carefully