tiny_psnr: fix range calculation for sample size of 32 bits