src/ringFinder.cpp

changeset 1065
c8ecddbd99e9
parent 1063
1f15c52c11f6
child 1072
9ce9496427f2
--- a/src/ringFinder.cpp	Sat Jan 28 14:13:01 2017 +0200
+++ b/src/ringFinder.cpp	Sat Jan 28 14:14:28 2017 +0200
@@ -192,8 +192,8 @@
 {
 	// If one solution has less components than the other one, it is definitely
 	// better.
-	if (length(getComponents()) != length(other->getComponents()))
-		return length(getComponents()) < length(other->getComponents());
+	if (countof(getComponents()) != countof(other->getComponents()))
+		return countof(getComponents()) < countof(other->getComponents());
 
 	// Calculate the maximum ring number. Since the solutions have equal
 	// ring counts, the solutions with lesser maximum rings should result

mercurial