File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1541,7 +1541,7 @@ function builtin_max(ctx: BuiltinContext): ExpressionRef {
1541
1541
case TypeKind . F32 : return module . binary ( BinaryOp . MaxF32 , arg0 , arg1 ) ;
1542
1542
case TypeKind . F64 : return module . binary ( BinaryOp . MaxF64 , arg0 , arg1 ) ;
1543
1543
}
1544
- if ( op != - 1 ) {
1544
+ if ( op as i32 != - 1 ) {
1545
1545
let flow = compiler . currentFlow ;
1546
1546
let typeRef = type . toRef ( ) ;
1547
1547
let temp1 = flow . getTempLocal ( type , findUsedLocals ( arg1 ) ) ;
@@ -1620,7 +1620,7 @@ function builtin_min(ctx: BuiltinContext): ExpressionRef {
1620
1620
case TypeKind . F32 : return module . binary ( BinaryOp . MinF32 , arg0 , arg1 ) ;
1621
1621
case TypeKind . F64 : return module . binary ( BinaryOp . MinF64 , arg0 , arg1 ) ;
1622
1622
}
1623
- if ( op != - 1 ) {
1623
+ if ( op as i32 != - 1 ) {
1624
1624
let flow = compiler . currentFlow ;
1625
1625
let typeRef = type . toRef ( ) ;
1626
1626
let temp1 = flow . getTempLocal ( type , findUsedLocals ( arg1 ) ) ;
You can’t perform that action at this time.
0 commit comments