Skip to content

Commit

Permalink
chore: fix addon.c according to function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
performant23 committed Mar 12, 2024
1 parent fa93f18 commit b39f673
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/node_modules/@stdlib/blas/ext/base/drev/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, stride, argv, 1 );

napi_value v;
napi_status status = napi_create_double( env, c_drev( N, (double *)X, stride ), &v );
assert( status == napi_ok );

return v;
c_drev( N, (double *)X, stride );
return NULL;
}

STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 comments on commit b39f673

Please sign in to comment.