aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-11-19 10:01:18 -0500
committermutantturkey <mutantturke@gmail.com>2012-11-19 10:01:18 -0500
commit2ee9cae7ae0bb7a556910d0f8dcc6a14ba7ba7ee (patch)
treebc080fb8ff46698727fadc70b4c2c1cc7fca8ea3
parent754edf136d1020462f65d60c963aeea4da5df1a6 (diff)
use unsigned int
-rw-r--r--fly-tools/FlyTrackingMain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp
index c68fe3c..5dd94f7 100644
--- a/fly-tools/FlyTrackingMain.cpp
+++ b/fly-tools/FlyTrackingMain.cpp
@@ -111,8 +111,8 @@ ostream &operator<<(ostream &out, FrameInfo & fI) {
}
void bubbleSort(vector<FlyObject > & fov) {
- for(int i=1; i<fov.size(); i++) {
- for(int j=0; j<fov.size()-i; j++) {
+ for(unsigned int i=1; i<fov.size(); i++) {
+ for(unsigned int j=0; j<fov.size()-i; j++) {
FlyObject a = fov[j];
FlyObject b = fov[j+1];
@@ -1316,7 +1316,7 @@ void largestIncreasingPositiveDotProductSeq(vector<pair<double, double> > veloci
int flag = false;
int maxSeqSize = 0;
int st = 0;
- for (int j=0; j<velocityDirs.size()-1; j++) {
+ for (unsigned int j=0; j<velocityDirs.size()-1; j++) {
pair<double,double> prevVel = velocityDirs[j];
pair<double, double> currVel = velocityDirs[j+1];