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 09e84bd commit 20016a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/riscv64/nrm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
if ( n == 1 ) return( ABS(x[0]) );

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

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

0 comments on commit 20016a0

Please sign in to comment.