float x;
float x_prev = 0;
- int xi;
+ uint xi;
uint i;
if (((float) (right-left))/targetSize < 2) {
for (i = 0; i < targetSize; i++) {
// Use linear interpolation in order to get smoother display
- if (xi == 0 || xi == in.size()-1) {
+ if (xi == 0 || xi == (uint) in.size()-1) {
// ... except if we are at the left or right border of the input sigal.
// Special case here since we consider previous and future values as well for
// the actual interpolation (not possible here).
// If there are more than 2 samples per pixel in average, then use the maximum of them
// since by only looking at the left sample we might miss some maxima.
uint src = left;
- int xi_prev = 0;
+// int xi_prev = 0;
int points;
#ifdef DEBUG_FFTTOOLS
out[i] = fill;
- for (; src < xi && src < in.size(); src++) {
+ for (; src < xi && src < (uint) in.size(); src++) {
if (out[i] < in[src]) {
out[i] = in[src];
}
points++;
}
- xi_prev = xi;
+// xi_prev = xi;
}
}
// Fill the rest of the vector if the right border exceeds the input vector.