summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 2d045401a..83f638310 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -597,7 +597,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
MappedGlobal global = mappedGlobals[name];
auto ret = allocator.alloc<Store>();
ret->bytes = getWasmTypeSize(global.type);
- ret->float_ = isFloat(global.type);
+ ret->float_ = isWasmTypeFloat(global.type);
ret->offset = 0;
ret->align = ret->bytes;
auto ptr = allocator.alloc<Const>();
@@ -676,7 +676,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
auto ret = allocator.alloc<Load>();
ret->bytes = getWasmTypeSize(global.type);
ret->signed_ = true; // but doesn't matter
- ret->float_ = isFloat(global.type);
+ ret->float_ = isWasmTypeFloat(global.type);
ret->offset = 0;
ret->align = ret->bytes;
auto ptr = allocator.alloc<Const>();