Fix dtype error on 32bit systems as convolve is only implemented for 32bit integers