Skip to content

Commit ea401c7

Browse files
fix: test error
1 parent b97c897 commit ea401c7

File tree

1 file changed

+6
-4
lines changed
  • lib/node_modules/@stdlib/stats/base/dnanvariancewd/src

1 file changed

+6
-4
lines changed

lib/node_modules/@stdlib/stats/base/dnanvariancewd/src/addon.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "stdlib/stats/base/dnanvariancewd.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/create_double.h"
2425
#include "stdlib/napi/export.h"
@@ -32,11 +33,12 @@
3233
* @return Node-API value
3334
*/
3435
static napi_value addon( napi_env env, napi_callback_info info ) {
35-
STDLIB_NAPI_ARGV( env, info, argv, argc, 3 );
36+
STDLIB_NAPI_ARGV( env, info, argv, argc, 4 );
3637
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
37-
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 2 );
38-
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, stride, argv, 1 );
39-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dnanvariancewd( N, X, stride ), v );
38+
STDLIB_NAPI_ARGV_INT64( env, stride, argv, 3 );
39+
STDLIB_NAPI_ARGV_DOUBLE( env, correction, argv, 1 );
40+
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, correction, stride, argv, 2 );
41+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dnanvariancewd( N, correction, X, stride ), v );
4042
return v;
4143
}
4244

0 commit comments

Comments
 (0)