diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 681fd13951..4a8ba42ad7 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -145,7 +145,7 @@ int main(int argc,char* argv[]){ } } - fseek(f[shift<0], shift < 0 ? -shift : shift, SEEK_CUR); + fseek(f[shift<0], abs(shift), SEEK_CUR); fseek(f[0],skip_bytes,SEEK_CUR); fseek(f[1],skip_bytes,SEEK_CUR);