From c70ba8f16d7ae8c82ef204dbd4e0fb66ac0c7387 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 1 Sep 2016 12:54:49 +0300 Subject: [PATCH] Fix bug in function signatures --- .../java/org/teavm/backend/wasm/generate/WasmGeneratorUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/teavm/backend/wasm/generate/WasmGeneratorUtil.java b/core/src/main/java/org/teavm/backend/wasm/generate/WasmGeneratorUtil.java index 240746e1e..481220b8e 100644 --- a/core/src/main/java/org/teavm/backend/wasm/generate/WasmGeneratorUtil.java +++ b/core/src/main/java/org/teavm/backend/wasm/generate/WasmGeneratorUtil.java @@ -54,6 +54,8 @@ public final class WasmGeneratorUtil { case DOUBLE: return WasmType.FLOAT64; } + } else if (type == ValueType.VOID) { + return null; } return WasmType.INT32; }