From af0f6ef999e8ddf9c168b697710fd313883e8807 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 Feb 2016 15:11:09 -0800 Subject: Bug fix and adds printing / parsing tests. --- src/wasm-s-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()->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()->setString(IString(start, false), dollared); // TODO: reuse the string here, carefully -- cgit v1.2.3