From 7a573efde18ebe04cd63bf2b71b3a040c4ac98a9 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Sun, 22 Feb 2015 22:39:07 +0300 Subject: [PATCH] Fix little bug --- teavm-core/src/main/java/org/teavm/common/GraphBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java b/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java index fad4816e2..1306006c2 100644 --- a/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java +++ b/teavm-core/src/main/java/org/teavm/common/GraphBuilder.java @@ -86,7 +86,7 @@ public class GraphBuilder { int[][] incomingEdgeList = new int[sz][]; for (int i = 0; i < sz; ++i) { incomingEdgeList[i] = incomingEdges[i].toArray(); - Arrays.sort(incomingEdgeList); + Arrays.sort(incomingEdgeList[i]); } builtGraph = new GraphImpl(incomingEdgeList, outgoingEdgeList); }