summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-21 21:50:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-21 21:50:30 -0800
commit89dd1fc5eaf9b19038d98388b6d3082f37c1fcf1 (patch)
tree0761b74d1661fe56481bf8f394fa96f3fd237883
parent3ab1d2c459ed6a235ba04c4ec70ff654530a7de9 (diff)
downloadbinaryen-89dd1fc5eaf9b19038d98388b6d3082f37c1fcf1.tar.gz
binaryen-89dd1fc5eaf9b19038d98388b6d3082f37c1fcf1.tar.bz2
binaryen-89dd1fc5eaf9b19038d98388b6d3082f37c1fcf1.zip
notice minified fround in function params and locals
-rw-r--r--src/asm2wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index f9999f011..394b3de9f 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -716,7 +716,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
curr = curr[1];
assert(curr[0] == ASSIGN && curr[2][0] == NAME);
IString name = curr[2][1]->getIString();
- AsmType asmType = detectType(curr[3]);
+ AsmType asmType = detectType(curr[3], nullptr, false, Math_fround);
function->params.emplace_back(name, asmToWasmType(asmType));
functionVariables.insert(name);
asmData.addParam(name, asmType);
@@ -727,7 +727,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
for (unsigned j = 0; j < curr[1]->size(); j++) {
Ref pair = curr[1][j];
IString name = pair[0]->getIString();
- AsmType asmType = detectType(pair[1], nullptr, true);
+ AsmType asmType = detectType(pair[1], nullptr, true, Math_fround);
function->locals.emplace_back(name, asmToWasmType(asmType));
functionVariables.insert(name);
asmData.addVar(name, asmType);