Skip to content

Commit 9bf1227

Browse files
Fixed c lint errors issue: #8159
1 parent 29cde0f commit 9bf1227

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base/function-object/examples/c

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/function-object/examples/c/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int main( void ) {
7474
stdlib_ndarray_function_free( obj );
7575

7676
// Use the function interface to create an ndarray function object...
77-
struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data );
77+
const struct ndarrayFunctionObject *obj2 = stdlib_ndarray_function_allocate( "unary_ndarray_function_2", 1, 1, functions, 1, types, data );
7878
if ( obj2 == NULL ) {
7979
fprintf( stderr, "Error allocating memory.\n" );
8080
exit( 1 );
@@ -87,5 +87,5 @@ int main( void ) {
8787
printf( "nfunctions = %i\n", obj2->nfunctions );
8888

8989
// Free allocated memory:
90-
stdlib_ndarray_function_free( obj );
90+
stdlib_ndarray_function_free( obj2 );
9191
}

0 commit comments

Comments
 (0)