From 31b922e79cbaad7b5143c044ce58b01b4a9be7f8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 28 Jun 2022 01:02:37 -0400 Subject: Silence some warnings for fixed-point debug builds Reviewed by Timothy B. Terriberry. --- celt/fixed_debug.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/celt/fixed_debug.h b/celt/fixed_debug.h index 3765baa6..92f0f47a 100644 --- a/celt/fixed_debug.h +++ b/celt/fixed_debug.h @@ -214,7 +214,7 @@ static OPUS_INLINE int SHL32_(opus_int64 a, int shift, char *file, int line) opus_int64 res; if (!VERIFY_INT(a) || !VERIFY_SHORT(shift)) { - fprintf (stderr, "SHL32: inputs are not int: %lld %d in %s: line %d\n", a, shift, file, line); + fprintf (stderr, "SHL32: inputs are not int: %lld %d in %s: line %d\n", (long long)a, shift, file, line); #ifdef FIXED_DEBUG_ASSERT celt_assert(0); #endif @@ -222,7 +222,7 @@ static OPUS_INLINE int SHL32_(opus_int64 a, int shift, char *file, int line) res = a<> 16; if (!VERIFY_INT(res)) { - fprintf (stderr, "MULT32_32_Q16: output is not int: %d*%d=%d\n", a, b, (int)res); + fprintf (stderr, "MULT32_32_Q16: output is not int: %lld*%lld=%lld\n", (long long)a, (long long)b, (long long)res); #ifdef FIXED_DEBUG_ASSERT celt_assert(0); #endif @@ -831,6 +831,6 @@ static OPUS_INLINE opus_val16 SIG2WORD16_generic(celt_sig x) #undef PRINT_MIPS -#define PRINT_MIPS(file) do {fprintf (file, "total complexity = %llu MIPS\n", celt_mips);} while (0); +#define PRINT_MIPS(file) do {fprintf (file, "total complexity = %llu MIPS\n", (unsigned long long)celt_mips);} while (0); #endif -- cgit v1.2.3