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 774615d commit 4a80510
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ static double API_SUFFIX(stdlib_strided_sumpw)( const CBLAS_INT N, const double
CBLAS_INT n2;
double v;

ix = offsetX;
sum = 0.0;
*n = 0;
if ( N <= 0 ) {
return sum;
}
ix = offsetX;
if ( strideX == 0 ) {
if ( stdlib_base_is_nan( X[ ix ]) ) {
return sum;
Expand Down

0 comments on commit 4a80510

Please sign in to comment.