From 9bf122745ab0239a7e5306bc590cd91e2ebcf802 Mon Sep 17 00:00:00 2001 From: Piyush Goel Date: Wed, 1 Oct 2025 14:21:51 +0530 Subject: [PATCH 1/2] Fixed c lint errors issue: #8159 --- .../@stdlib/ndarray/base/function-object/examples/c/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c b/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c index c394daf55ac9..a6a76cacda3a 100644 --- a/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c +++ b/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c @@ -74,7 +74,7 @@ int main( void ) { stdlib_ndarray_function_free( obj ); // Use the function interface to create an ndarray function object... - struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data ); + const struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data ); if ( obj2 == NULL ) { fprintf( stderr, "Error allocating memory.\n" ); exit( 1 ); @@ -87,5 +87,5 @@ int main( void ) { printf( "nfunctions = %i\n", obj2->nfunctions ); // Free allocated memory: - stdlib_ndarray_function_free( obj ); + stdlib_ndarray_function_free( obj2 ); } From 61caef78dea49c9a6a3d1244bef75bbb38b39d57 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 2 Oct 2025 12:36:32 -0700 Subject: [PATCH 2/2] docs: remove `const` qualifier Signed-off-by: Athan --- .../@stdlib/ndarray/base/function-object/examples/c/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c b/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c index a6a76cacda3a..ff4eea4017a8 100644 --- a/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c +++ b/lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c @@ -74,7 +74,7 @@ int main( void ) { stdlib_ndarray_function_free( obj ); // Use the function interface to create an ndarray function object... - const struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data ); + struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data ); if ( obj2 == NULL ) { fprintf( stderr, "Error allocating memory.\n" ); exit( 1 );