don't lose precision during constant comparison in dfa (IDEA-153532)

This commit is contained in:
peter
2016-03-24 11:54:45 +01:00
parent 75373588a4
commit 0a9d2963ae
2 changed files with 29 additions and 16 deletions
@@ -22,4 +22,10 @@ class Foo {
if (<warning descr="Condition 'k > Integer.MAX_VALUE' is always 'false'">k > Integer.MAX_VALUE</warning>);
if (<warning descr="Condition 'k >= Integer.MIN_VALUE' is always 'true'">k >= Integer.MIN_VALUE</warning>);
}
void doo() {
for (long l = Long.MIN_VALUE; l < Long.MIN_VALUE + 10; l++) {
System.out.println(l);
}
}
}