Skip to content

Commit f747aed

Browse files
authored
fix loop condition for incx < 0
1 parent 23796f8 commit f747aed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/mips/znrm2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
5353
inc_x2 = 2 * inc_x;
5454

5555
n *= inc_x2;
56-
while(i < n)
56+
while(abs(i) < abs(n))
5757
{
5858

5959
if ( x[i] != 0.0 )

0 commit comments

Comments
 (0)