Skip to content

Commit 9409a9d

Browse files
authored
chore: pass correction as double
1 parent 603373e commit 9409a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dvariancewd/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static double benchmark1( int iterations, int len ) {
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110110
// cppcheck-suppress uninitvar
111-
v = stdlib_strided_dvariancewd( len, 1, x, 1 );
111+
v = stdlib_strided_dvariancewd( len, 1.0, x, 1 );
112112
if ( v != v ) {
113113
printf( "should not return NaN\n" );
114114
break;
@@ -142,7 +142,7 @@ static double benchmark2( int iterations, int len ) {
142142
t = tic();
143143
for ( i = 0; i < iterations; i++ ) {
144144
// cppcheck-suppress uninitvar
145-
v = stdlib_strided_dvariancewd_ndarray( len, 1, x, 1, 0 );
145+
v = stdlib_strided_dvariancewd_ndarray( len, 1.0, x, 1, 0 );
146146
if ( v != v ) {
147147
printf( "should not return NaN\n" );
148148
break;

0 commit comments

Comments
 (0)