Skip to content

Commit 04f59a2

Browse files
authored
fix(fblas/ext/base/dcusumors): change from int64 to double
PR-URL: #2085 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 8897a7d commit 04f59a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/node_modules/@stdlib/blas/ext/base/dcusumors/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"dependencies": [
4141
"@stdlib/napi/argv",
4242
"@stdlib/napi/argv-int64",
43+
"@stdlib/napi/argv-double",
4344
"@stdlib/napi/argv-strided-float64array",
4445
"@stdlib/napi/export"
4546
]

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "stdlib/blas/ext/base/dcusumors.h"
2020
#include "stdlib/napi/argv.h"
2121
#include "stdlib/napi/argv_int64.h"
22+
#include "stdlib/napi/argv_double.h"
2223
#include "stdlib/napi/argv_strided_float64array.h"
2324
#include "stdlib/napi/export.h"
2425

@@ -33,7 +34,7 @@
3334
static napi_value addon( napi_env env, napi_callback_info info ) {
3435
STDLIB_NAPI_ARGV( env, info, argv, argc, 6 );
3536
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
36-
STDLIB_NAPI_ARGV_INT64( env, sum, argv, 1 );
37+
STDLIB_NAPI_ARGV_DOUBLE( env, sum, argv, 1 );
3738
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
3839
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
3940
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );

0 commit comments

Comments
 (0)