diff --git a/src/fourier/details/healpix_utility.hpp b/src/fourier/details/healpix_utility.hpp index 8803ae9..11219d6 100644 --- a/src/fourier/details/healpix_utility.hpp +++ b/src/fourier/details/healpix_utility.hpp @@ -87,7 +87,7 @@ namespace CosmoTool HealpixSpectrum *new_spectrum = new HealpixSpectrum(in_spec.Lmax()); T *out_d = new_spectrum->data(); - std::copy(data, data + min(size,new_spectrum->size()), out_d); + std::copy(data, data + std::min(size,new_spectrum->size()), out_d); return Spectrum_ptr(new_spectrum); }