Minor refactoring; Fix n-body TS build

This commit is contained in:
dcodeIO
2018-04-28 18:07:20 +02:00
parent 2aea14b518
commit 8b5d1d7f74
13 changed files with 296 additions and 310 deletions

View File

@ -5,9 +5,7 @@
import {
Compiler,
ConversionKind,
makeSmallIntegerWrap
ConversionKind
} from "./compiler";
import {
@ -383,10 +381,9 @@ export function compileCall(
case TypeKind.U8:
case TypeKind.U16:
case TypeKind.BOOL: {
ret = makeSmallIntegerWrap(
ret = compiler.makeSmallIntegerWrap(
module.createBinary(BinaryOp.RotlI32, arg0, arg1),
compiler.currentType,
module
compiler.currentType
);
// fall-through
}
@ -469,10 +466,9 @@ export function compileCall(
case TypeKind.U8:
case TypeKind.U16:
case TypeKind.BOOL: {
ret = makeSmallIntegerWrap(
ret = compiler.makeSmallIntegerWrap(
module.createBinary(BinaryOp.RotrI32, arg0, arg1),
compiler.currentType,
module
compiler.currentType
);
break;
}