Skip to content

Commit 18a6db6

Browse files
authored
Update nrm2_vector.c
1 parent 3752e73 commit 18a6db6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/riscv64/nrm2_vector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
193193
//finish any tail using scalar ops
194194
i*=gvl*inc_x;
195195
n*=inc_x;
196-
while(abs(i) < abs(n)){
196+
while(i< n){
197197
if ( x[i] != 0.0 ){
198198
FLOAT absxi = ABS( x[i] );
199199
if ( scale < absxi ){

0 commit comments

Comments
 (0)