We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a53ca7 + 919397c commit 22f2485Copy full SHA for 22f2485
compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala
@@ -1267,12 +1267,12 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
1267
emit(asm.Opcodes.LCMP)
1268
case FLOAT =>
1269
emit(asm.Opcodes.FCONST_0)
1270
- if (op == LT || op == LE) emit(asm.Opcodes.FCMPG)
1271
- else emit(asm.Opcodes.FCMPL)
+ if (op == LT || op == LE) emit(asm.Opcodes.FCMPL)
+ else emit(asm.Opcodes.FCMPG)
1272
case DOUBLE =>
1273
emit(asm.Opcodes.DCONST_0)
1274
- if (op == LT || op == LE) emit(asm.Opcodes.DCMPG)
1275
- else emit(asm.Opcodes.DCMPL)
+ if (op == LT || op == LE) emit(asm.Opcodes.DCMPL)
+ else emit(asm.Opcodes.DCMPG)
1276
}
1277
bc.emitIF(op, success)
1278
0 commit comments