Skip to content

Commit

Permalink
fix: update build configuration and remove unnecessary cast
Browse files Browse the repository at this point in the history
Ref: #1861
  • Loading branch information
kgryte committed Mar 21, 2024
1 parent 23fba1c commit fbb34de
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
46 changes: 43 additions & 3 deletions lib/node_modules/@stdlib/blas/ext/base/dssum/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"options": {},
"options": {
"task": "build"
},
"fields": [
{
"field": "src",
Expand All @@ -23,7 +25,29 @@
}
],
"confs": [
{
{
"task": "build",
"src": [
"./src/dssum.c"
],
"include": [
"./include"
],
"libraries": [
"-lm"
],
"libpath": [],
"dependencies": [
"@stdlib/blas/ext/base/dssumpw",
"@stdlib/napi/argv",
"@stdlib/napi/export",,
"@stdlib/napi/argv-int64",,
"@stdlib/napi/argv-strided-float32array",

]
},
{
"task": "benchmark",
"src": [
"./src/dssum.c"
],
Expand All @@ -37,6 +61,22 @@
"dependencies": [
"@stdlib/blas/ext/base/dssumpw"
]
}
},
{
"task": "examples",
"src": [
"./src/dssum.c"
],
"include": [
"./include"
],
"libraries": [
"-lm"
],
"libpath": [],
"dependencies": [
"@stdlib/blas/ext/base/dssumpw"
]
}
]
}
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/blas/ext/base/dssum/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );

napi_value v;
status = napi_create_double( env, stdlib_strided_dssum( N, (float *)X, stride ), &v );
status = napi_create_double( env, stdlib_strided_dssum( N, X, stride ), &v );
assert( status == napi_ok );

return v;
}

Expand Down

0 comments on commit fbb34de

Please sign in to comment.