From 9113d36314e2a9cd52f6e0829ce915718b545c02 Mon Sep 17 00:00:00 2001 From: zhanggy Date: Thu, 25 Dec 2025 11:12:41 +0800 Subject: [PATCH 1/2] chore: fix C lint errors (issue #9357) --- .../@stdlib/stats/base/snanstdevwd/examples/c/example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c index a4a2ecc60b25..4196f26c7ac3 100644 --- a/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c @@ -22,13 +22,13 @@ int main( void ) { // Create a strided array: - float x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 }; + const float x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 }; // Specify the number of elements: - int64_t N = 6; + const int64_t N = 6; // Specify the stride length: - int64_t stride = 2; + const int64_t stride = 2; // Compute the standard deviation: float v = stdlib_strided_snanstdevwd( N, 1.0f, x, stride ); From 34099db49b980271ca50da3daef37f3b3bc0cf6c Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 25 Dec 2025 01:23:35 -0800 Subject: [PATCH 2/2] docs: add missing suffix Signed-off-by: Athan --- .../@stdlib/stats/base/snanstdevwd/examples/c/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c index 4196f26c7ac3..1d64737615b3 100644 --- a/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c/example.c @@ -22,7 +22,7 @@ int main( void ) { // Create a strided array: - const float x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 }; + const float x[] = { 1.0f, 2.0f, 0.0f/0.0f, 3.0f, 0.0f/0.0f, 4.0f, 5.0f, 6.0f, 0.0f/0.0f, 7.0f, 8.0f, 0.0f/0.0f }; // Specify the number of elements: const int64_t N = 6;