diff options
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 |