From 9f9e8f848dd3472e4ffa9f1ba301dd261f5e10da Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Oct 2015 16:56:54 -0700 Subject: fix function type printing --- src/wasm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 87e18c7ba..8869c7e80 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -392,7 +392,7 @@ public: std::ostream& print(std::ostream &o, unsigned indent, bool full=false) { if (full) { printOpening(o, "type") << ' '; - name.print(o); + name.print(o) << " (func"; } if (params.size() > 0) { o << ' '; @@ -409,7 +409,7 @@ public: printBasicType(o, result) << ')'; } if (full) { - o << ')'; + o << "))";; } return o; } -- cgit v1.2.3