mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
More on comparison that is always false due to being out of type range on implicit type conversion (IDEA-124210)
This commit is contained in:
+4
-2
@@ -470,10 +470,12 @@ public class StandardInstructionVisitor extends InstructionVisitor {
|
||||
}
|
||||
|
||||
if (opSign == LT && constantValue <= minValue) return alwaysFalse(instruction, runner, memState);
|
||||
if ((opSign == LT || opSign == LE) && constantValue > maxValue) return alwaysTrue(instruction, runner, memState);
|
||||
if (opSign == LT && constantValue > maxValue) return alwaysTrue(instruction, runner, memState);
|
||||
if (opSign == LE && constantValue >= maxValue) return alwaysTrue(instruction, runner, memState);
|
||||
|
||||
if (opSign == GT && constantValue >= maxValue) return alwaysFalse(instruction, runner, memState);
|
||||
if ((opSign == GT || opSign == GE) && constantValue < minValue) return alwaysTrue(instruction, runner, memState);
|
||||
if (opSign == GT && constantValue < minValue) return alwaysTrue(instruction, runner, memState);
|
||||
if (opSign == GE && constantValue <= minValue) return alwaysTrue(instruction, runner, memState);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user