From 113f67177c50ebe7052d5268cba7bc9d1fba4171 Mon Sep 17 00:00:00 2001 From: MANI <77221000+Eternity0207@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:35:15 +0530 Subject: [PATCH 1/2] chore: fix C lint errors #6132 Signed-off-by: MANI <77221000+Eternity0207@users.noreply.github.com> --- .../@stdlib/strided/base/dmskmap/examples/c/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c index b7f829860183..e91615871552 100644 --- a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c @@ -28,10 +28,10 @@ static double scale( const double x ) { int main( void ) { // Create an input strided array: - double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; + const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; // Create a mask strided array: - uint8_t M[] = { 0, 0, 1, 0, 0, 1 }; + const uint8_t M[] = { 0, 0, 1, 0, 0, 1 }; // Create an output strided array: double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; From 8c23ba4376443260e2d31c5ac87218a522bc0d79 Mon Sep 17 00:00:00 2001 From: MANI <77221000+Eternity0207@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:17:20 +0530 Subject: [PATCH 2/2] Fix: Uninitialized variable: x Signed-off-by: MANI <77221000+Eternity0207@users.noreply.github.com> --- .../@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c index 6d0d385a7436..18ec7a511a6f 100644 --- a/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c @@ -96,7 +96,7 @@ static float rand_float( void ) { */ static double benchmark( int iterations, int len ) { double elapsed; - float x[ len ]; + double x[ len ]; float v; double t; int i;