fix loop condition for incx < 0

This commit is contained in:
Martin Kroeker
2024-03-12 15:48:55 +01:00
committed by GitHub
parent 09e84bd29a
commit 20016a0096

View File

@@ -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 )