Skip to content

Commit

Permalink
fix: apply code review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
headlessNode committed Oct 11, 2024
1 parent 025112c commit c3632ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/dnannsumors/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ double API_SUFFIX(stdlib_strided_dnannsumors_ndarray)( const CBLAS_INT N, const
ix = offsetX;
*n = 0;
if ( strideX == 0 ) {
if ( stdlib_base_is_nan( X[ 0 ] ) ) {
if ( stdlib_base_is_nan( X[ ix ] ) ) {
return sum;
}
sum = X[ 0 ] * N;
sum = X[ ix ] * N;
*n += N;
return sum;
}
Expand Down

0 comments on commit c3632ee

Please sign in to comment.