tiny_psnr: fix undefined shift
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Aug 2012 17:48:43 +0000 (19:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Aug 2012 18:00:01 +0000 (20:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/tiny_psnr.c

index b4d05d3..b912061 100644 (file)
@@ -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;