Update nrm2_vector.c

This commit is contained in:
Martin Kroeker 2024-03-13 11:10:26 +01:00 committed by GitHub
parent 3752e73919
commit 18a6db6862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
//finish any tail using scalar ops
i*=gvl*inc_x;
n*=inc_x;
while(abs(i) < abs(n)){
while(i< n){
if ( x[i] != 0.0 ){
FLOAT absxi = ABS( x[i] );
if ( scale < absxi ){