Cppcheck: Fixed bug from last commit. Also added some new fixes

This commit is contained in:
heckflosse
2016-10-13 17:37:08 +02:00
parent 172ab63b85
commit 3625643392
13 changed files with 44 additions and 448 deletions

View File

@@ -311,10 +311,10 @@ void FlatCurve::CtrlPoints_set ()
if (nbr_points < 0) {
for(size_t it = 0; it < sc_x.size(); it += 3) {
printf("sc_length[%zd/3]=%f \n", it, sc_length[it / 3]);
printf("sc_length[%zu/3]=%f \n", it, sc_length[it / 3]);
}
printf("Flat curve: error detected!\n i=%d k=%d periodic=%d nbr_points=%d ppn=%d N=%d sc_length[i/3]=%f total_length=%f\n", i, k, periodic, nbr_points, ppn, N, sc_length[i / 3], total_length);
printf("Flat curve: error detected!\n i=%u k=%u periodic=%d nbr_points=%d ppn=%d N=%d sc_length[i/3]=%f total_length=%f\n", i, k, periodic, nbr_points, ppn, N, sc_length[i / 3], total_length);
exit(0);
}