comparison maths/Polyfit.h @ 102:37449f085a4c

Fix compiler warnings
author Chris Cannam
date Thu, 13 Jun 2013 10:23:09 +0100
parents b4921bfd2aea
children be1fc3a6b901
comparison
equal deleted inserted replaced
101:452615c4bab4 102:37449f085a4c
122 } 122 }
123 if(npoints < 2) { 123 if(npoints < 2) {
124 std::cerr << "ERROR: PolyFit called with less than two points" << std::endl; 124 std::cerr << "ERROR: PolyFit called with less than two points" << std::endl;
125 return 0; 125 return 0;
126 } 126 }
127 if(npoints != y.size()) { 127 if(npoints != (int)y.size()) {
128 std::cerr << "ERROR: PolyFit called with x and y of unequal size" << std::endl; 128 std::cerr << "ERROR: PolyFit called with x and y of unequal size" << std::endl;
129 return 0; 129 return 0;
130 } 130 }
131 for(i = 0; i < npoints; ++i) 131 for(i = 0; i < npoints; ++i)
132 { 132 {