diff options
author | Michael <mbebenita@Michaels-MacBook-Pro-4.local> | 2016-02-22 15:11:09 -0800 |
---|---|---|
committer | Michael <mbebenita@Michaels-MacBook-Pro-4.local> | 2016-02-22 15:20:23 -0800 |
commit | af0f6ef999e8ddf9c168b697710fd313883e8807 (patch) | |
tree | 5790caa589d90349a0913f1322a6e42d7db8a043 /src | |
parent | 75a6357e2b57a908f955e4cc7b3e9e627524f385 (diff) | |
download | binaryen-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.h | 2 |
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 |