summaryrefslogtreecommitdiff
path: root/src/wasm-binary-writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary-writer.c')
-rw-r--r--src/wasm-binary-writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c
index 2fb7fe5c..9d47a558 100644
--- a/src/wasm-binary-writer.c
+++ b/src/wasm-binary-writer.c
@@ -677,6 +677,9 @@ static void write_module(Context* ctx, const WasmModule* module) {
case WASM_EXTERNAL_KIND_GLOBAL:
write_global_header(ctx, &import->global);
break;
+ case WASM_NUM_EXTERNAL_KINDS:
+ assert(0);
+ break;
}
}
end_section(ctx);