mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
Minor refactoring; Fix n-body TS build
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user