[opus] [PATCH] test_opus_decode: force integer constants unsigned
James Zern
jzern at google.com
Wed Feb 27 13:22:25 PST 2013
This allows a clean build when using -Werror and the mentioned 'gcc
-m32 -std=gnu90'.
-------------- next part --------------
From 6cec035c8801707c9b73f836e2f97752b313b2cc Mon Sep 17 00:00:00 2001
From: James Zern <jzern at google.com>
Date: Wed, 27 Feb 2013 13:16:03 -0800
Subject: [PATCH] test_opus_decode: force integer constants unsigned
Quiets:
warning: this decimal constant is unsigned only in ISO C90
when building with e.g., gcc -m32 -std=gnu90
---
tests/test_opus_decode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index e2c04c2..58c477b 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -230,8 +230,8 @@ int test_decoder_code0(int no_fuzz)
/*We only test a subset of the modes here simply because the longer
durations end up taking a long time.*/
static const int cmodes[4]={16,20,24,28};
- static const opus_uint32 cres[4]={116290185,2172123586,2172123586,2172123586};
- static const opus_uint32 lres[3]={3285687739,1481572662,694350475};
+ static const opus_uint32 cres[4]={116290185,2172123586u,2172123586u,2172123586u};
+ static const opus_uint32 lres[3]={3285687739u,1481572662,694350475};
static const int lmodes[3]={0,4,8};
int mode=fast_rand()%4;
--
1.8.1.3
More information about the opus
mailing list