Warningfix knut

Warningsfixes by Knut.
this change is the straight-forward way (with Peak1D being a wild guess here). So how about using the correct type for 'max' in the first place and avoid the cast:

SpectrumType::PeakType::IntensityType max(0);