Update binaryen; Replace uses of Math.* with portable built-ins

This commit is contained in:
dcodeIO
2017-12-09 01:35:18 +01:00
parent bbc71ebe81
commit 6d8de50565
7 changed files with 21 additions and 24 deletions

View File

@ -37,7 +37,7 @@ export class Type {
constructor(kind: TypeKind, size: i32) {
this.kind = kind;
this.size = size;
this.byteSize = Math.ceil(<f64>size / 8);
this.byteSize = ceil<f64>(<f64>size / 8);
this.classType = null;
}