From 4b5b23309dc5cf972c4ea8c072f2b41f7aacc227 Mon Sep 17 00:00:00 2001 From: kaushal-kumar-it Date: Thu, 25 Dec 2025 11:03:31 +0530 Subject: [PATCH] chore: fix C lint errors (issue #9357) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: missing_dependencies - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@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 );