diff --git a/template/src/index.ts.ejs b/template/src/index.ts.ejs index 06b7160..30ae2ab 100644 --- a/template/src/index.ts.ejs +++ b/template/src/index.ts.ejs @@ -50,6 +50,8 @@ export function <%- ex.name %>(): number { <% } -%> <% } else if (ex.output.type === 'string') { -%> Host.outputString(output) + <% } else if (ex.output.type === 'number') { -%> + Host.outputBytes(Float32Array.of(output).buffer) <% } else { -%> Host.outputBytes(output) <% } -%> @@ -59,4 +61,3 @@ export function <%- ex.name %>(): number { } <% }) %> -