From 5d6cd3e3a37c48327db5c67c5dc0cdf69f25973e Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 31 Oct 2016 13:42:45 -0700 Subject: Convert WasmType into an enum (#197) Fix the bug in logging_begin_global that was exposed by the using an explicit type here. --- src/wasm-binary-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-binary-reader.c') diff --git a/src/wasm-binary-reader.c b/src/wasm-binary-reader.c index fa3fec86..21b2169d 100644 --- a/src/wasm-binary-reader.c +++ b/src/wasm-binary-reader.c @@ -783,7 +783,7 @@ static WasmResult logging_begin_global(uint32_t index, LoggingContext* ctx = user_data; LOGF("begin_global(index: %u, type: %s, mutable: %s)\n", index, wasm_get_type_name(type), mutable_ ? "true" : "false"); - FORWARD(begin_global, index, mutable_, type); + FORWARD(begin_global, index, type, mutable_); } static WasmResult logging_on_export(uint32_t index, -- cgit v1.2.3