Skip to content

Commit d583804

Browse files
committed
fix: resolve bugs in addon.c
1 parent bcf58bb commit d583804

File tree

1 file changed

+4
-6
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/dcusum/src

1 file changed

+4
-6
lines changed

lib/node_modules/@stdlib/blas/ext/base/dcusum/src/addon.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@
3636
static napi_value addon( napi_env env, napi_callback_info info ) {
3737
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
3838
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
39-
STDLIB_NAPI_ARGV_DOUBLE( env, N, argv, 1 );
39+
STDLIB_NAPI_ARGV_DOUBLE( env, sum, argv, 1 );
4040
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
4141
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
4242
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
43-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideY, argv, 4 );
43+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 4 );
4444

45-
napi_value v;
46-
status = napi_create_double( env, stdlib_strided_dcusum( N, sum, X, strideX, Y, strideY ), &v );
47-
assert( status == napi_ok );
48-
return v;
45+
stdlib_strided_dcusum( N, sum, X, strideX, Y, strideY );
46+
return NULL;
4947
}
5048

5149
STDLIB_NAPI_MODULE_EXPORT_FCN( addon )

0 commit comments

Comments
 (0)