From 7e2347d8e7260df04331c3ffc1c659f5fb4e5f32 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 23 Sep 2024 01:14:36 +0300 Subject: [PATCH] samples: melody.c: use `static` keyword for the array --- samples/melody.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/melody.c b/samples/melody.c index 9c4ba5c..8e3776c 100644 --- a/samples/melody.c +++ b/samples/melody.c @@ -1,5 +1,5 @@ // RENDER PARAMETERS: sample_rate = 44100, no_return -const long double array[] = {1, 1.25, 1.5, 2}; +static const long double array[] = {1, 1.25, 1.5, 2}; long double v = array[3 & (t >> 13)]; return (long double) t * v / 3.1415926535;