Commit c99d3e2e authored by Michael Niedermayer's avatar Michael Niedermayer

tiny_psnr: fix undefined shift

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 98b01206
......@@ -129,7 +129,7 @@ static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes)
uint64_t dev;
uint8_t buf[2][SIZE];
uint64_t psnr;
int64_t max = (1 << (8 * len)) - 1;
int64_t max = (1LL << (8 * len)) - 1;
int size0 = 0;
int size1 = 0;
int maxdist = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment