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 20016a0 commit 6b89e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/riscv64/znrm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 6b89e1f

Please sign in to comment.