From e28b9d7084c7a1626797eb35066545d58e5b7a1d Mon Sep 17 00:00:00 2001 From: GeoDaoyu Date: Fri, 3 Apr 2026 13:35:45 +0800 Subject: [PATCH] chore: fix C lint errors (issue #11274) --- .../@stdlib/strided/base/dmap/examples/c/example.c | 8 ++++---- lib/node_modules/@stdlib/strided/base/dmap/src/main.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/dmap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/dmap/examples/c/example.c index 8ae5eb40a1cc..ba8e8c5b0ba9 100644 --- a/lib/node_modules/@stdlib/strided/base/dmap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/dmap/examples/c/example.c @@ -28,17 +28,17 @@ 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 an output strided array: double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; // Specify the number of elements: - int64_t N = 6; + const int64_t N = 6; // Define the strides: - int64_t strideX = 1; - int64_t strideY = -1; + const int64_t strideX = 1; + const int64_t strideY = -1; // Apply the callback: stdlib_strided_dmap( N, X, strideX, Y, strideY, scale ); diff --git a/lib/node_modules/@stdlib/strided/base/dmap/src/main.c b/lib/node_modules/@stdlib/strided/base/dmap/src/main.c index dd7f184d63c7..b2d04d7410a2 100644 --- a/lib/node_modules/@stdlib/strided/base/dmap/src/main.c +++ b/lib/node_modules/@stdlib/strided/base/dmap/src/main.c @@ -38,10 +38,10 @@ * return x * 10.0; * } * -* 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 }; * double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; * -* int64_t N = 6; +* const int64_t N = 6; * * stdlib_strided_dmap( N, X, 1, Y, 1, scale ); */