From 148a31960aeb2ba127ef4322a12ae3af28ef2988 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 24 Jun 2007 12:15:43 +0000 Subject: [PATCH] nicer with size_t for cycles, they can't be negative anyway --- src/genealgorithms.cpp | 4 ++-- src/genealgorithms.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/genealgorithms.cpp b/src/genealgorithms.cpp index 78b0f05..7f54109 100644 --- a/src/genealgorithms.cpp +++ b/src/genealgorithms.cpp @@ -66,8 +66,8 @@ struct FindP{ }; -int countCycles(const GeneOrder& go){ - int cycles = 0; +size_t countCycles(const GeneOrder& go){ + size_t cycles = 0; set marked; vector intervals = findIntervals(go); vector points = findIntervalsAtPoints(intervals); diff --git a/src/genealgorithms.h b/src/genealgorithms.h index 0158c35..b5ed95d 100644 --- a/src/genealgorithms.h +++ b/src/genealgorithms.h @@ -49,7 +49,7 @@ std::vector > robinsonSchensted(const GeneOrder& go); /** * Counts the number of cycles in the gene order. */ -int countCycles(const GeneOrder& go); +size_t countCycles(const GeneOrder& go); /** * Finds the components in the gene order. -- 2.39.2