Skip to content

Commit

Permalink
Fix to an apparent bug with submission flipping
Browse files Browse the repository at this point in the history
  • Loading branch information
ksiadzrobak committed Mar 14, 2018
1 parent b7a186f commit 05f00d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jplag/src/main/java/jplag/GSTiling.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public final AllMatches compare(Submission subA, Submission subB) {
if (subA.struct.size() > subB.struct.size()) {
A = subB; B = subA;
} else {
A = subB; B = subA;
A = subA; B = subB;
}
// if hashtable exists in first but not in second structure: flip around!
if (B.struct.table == null && A.struct.table != null) {
Expand Down

0 comments on commit 05f00d5

Please sign in to comment.