fix loop condition for incx < 0

This commit is contained in:
Martin Kroeker 2024-03-12 15:48:00 +01:00 committed by GitHub
parent f747aedb52
commit 09e84bd29a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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 )