Skip to content

Commit

Permalink
fix loop condition for incx < 0
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Mar 12, 2024
1 parent 23796f8 commit f747aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/mips/znrm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
inc_x2 = 2 * inc_x;

n *= inc_x2;
while(i < n)
while(abs(i) < abs(n))
{

if ( x[i] != 0.0 )
Expand Down

0 comments on commit f747aed

Please sign in to comment.