From fd8e78a65ba51fbc636ac6832a0e29501b43838b Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Mon, 13 Nov 2017 22:26:12 +0100 Subject: Fix yet another BinaryenAddGlobal tracing issue (#1283) Now also includes a test. --- src/binaryen-c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/binaryen-c.cpp') diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 08136d059..9883aef71 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -841,7 +841,7 @@ BinaryenFunctionRef BinaryenAddFunction(BinaryenModuleRef module, const char* na BinaryenGlobalRef BinaryenAddGlobal(BinaryenModuleRef module, const char* name, BinaryenType type, int8_t mutable_, BinaryenExpressionRef init) { if (tracing) { - std::cout << " BinaryenAddGlobal(the_module, \"" << name << "\", " << type << ", " << mutable_ << ", expressions[" << expressions[init] << "]);\n"; + std::cout << " BinaryenAddGlobal(the_module, \"" << name << "\", " << type << ", " << int(mutable_) << ", expressions[" << expressions[init] << "]);\n"; } auto* wasm = (Module*)module; -- cgit v1.2.3