Implement Math/Mathf.pow

This commit is contained in:
dcodeIO
2018-03-26 03:50:06 +02:00
parent e26734ef90
commit e75d006d26
18 changed files with 10062 additions and 988 deletions

View File

@ -1903,7 +1903,7 @@ export function compileCall(
}
let type = compiler.currentType;
arg1 = compiler.compileExpression(operands[1], type);
arg2 = compiler.compileExpression(operands[2], Type.bool);
arg2 = compiler.compileExpression(operands[2], Type.i32);
compiler.currentType = type;
switch (compiler.currentType.kind) {
default: { // any value type