diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-02-23 14:04:50 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-02-23 14:04:50 -0800 |
commit | 9c16dbe573d2fda9fca45f6ef9d60ac90fec9f79 (patch) | |
tree | 574acf199814cc06e840ade6aa5b3d2bad3c7c67 /src | |
parent | 817d92d7dd48752f6c0a82989ecfbde4553ad066 (diff) | |
parent | af0f6ef999e8ddf9c168b697710fd313883e8807 (diff) | |
download | binaryen-9c16dbe573d2fda9fca45f6ef9d60ac90fec9f79.tar.gz binaryen-9c16dbe573d2fda9fca45f6ef9d60ac90fec9f79.tar.bz2 binaryen-9c16dbe573d2fda9fca45f6ef9d60ac90fec9f79.zip |
Merge pull request #210 from mbebenita/fix-parsing
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 a79998475..30a9e683f 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 |