From d63fc8b2ec5b0c0a9826e89ff3b6d2d245b183cb Mon Sep 17 00:00:00 2001 From: Jackkal Date: Thu, 19 Mar 2015 20:56:22 +0100 Subject: [PATCH] Fix decompilation error: ClassCastException in AND/OR detection. --- libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index 03fc7beb8..2b93b130e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -1471,7 +1471,7 @@ public class Graph { a.firstPart = ((AndItem) second).firstPart; } if (second instanceof OrItem) { - a.firstPart = ((AndItem) second).firstPart; + a.firstPart = ((OrItem) second).firstPart; } } else { OrItem o = new OrItem(null, first, second); @@ -1480,8 +1480,8 @@ public class Graph { if (second instanceof OrItem) { o.firstPart = ((OrItem) second).firstPart; } - if (second instanceof OrItem) { - o.firstPart = ((OrItem) second).firstPart; + if (second instanceof AndItem) { + o.firstPart = ((AndItem) second).firstPart; } }