From 79a6f4d2ada9d2325acb2be6a34c71920bf45992 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@jmvalin.ca> Date: Wed, 29 Aug 2012 09:43:23 -0400 Subject: [PATCH] Makes two static tables const --- celt/celt.c | 2 +- silk/fixed/apply_sine_window_FIX.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/celt/celt.c b/celt/celt.c index 8164269e9..adb9737c4 100644 --- a/celt/celt.c +++ b/celt/celt.c @@ -2841,7 +2841,7 @@ bad_request: const char *opus_strerror(int error) { - static const char *error_strings[8] = { + static const char * const error_strings[8] = { "success", "invalid argument", "buffer too small", diff --git a/silk/fixed/apply_sine_window_FIX.c b/silk/fixed/apply_sine_window_FIX.c index d996fa082..897fdc30b 100644 --- a/silk/fixed/apply_sine_window_FIX.c +++ b/silk/fixed/apply_sine_window_FIX.c @@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE. /* Matlab code for table: for k=16:9*4:16+2*9*4, fprintf(' %7.d,', -round(65536*pi ./ (k:4:k+8*4))); fprintf('\n'); end */ -static opus_int16 freq_table_Q16[ 27 ] = { +static const opus_int16 freq_table_Q16[ 27 ] = { 12111, 9804, 8235, 7100, 6239, 5565, 5022, 4575, 4202, 3885, 3612, 3375, 3167, 2984, 2820, 2674, 2542, 2422, 2313, 2214, 2123, 2038, 1961, 1889, 1822, 1760, 1702, -- GitLab