Skip to content

Commit e05f9ef

Browse files
committed
fix: apply code review suggestion
1 parent c3632ee commit e05f9ef

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/dnannsumors/src

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/blas/ext/base/dnannsumors/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ double API_SUFFIX(stdlib_strided_dnannsumors_ndarray)( const CBLAS_INT N, const
5151
CBLAS_INT i;
5252

5353
sum = 0.0;
54+
*n = 0;
5455
if ( N <= 0 ) {
5556
return sum;
5657
}
5758
ix = offsetX;
58-
*n = 0;
5959
if ( strideX == 0 ) {
6060
if ( stdlib_base_is_nan( X[ ix ] ) ) {
6161
return sum;

0 commit comments

Comments
 (0)