handle incx < 0

This commit is contained in:
Martin Kroeker 2024-03-12 20:42:11 +01:00 committed by GitHub
parent dee8557d58
commit db70c7f7fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
{
BLASLONG i=0, j=0;
if (n <= 0 || inc_x <= 0) return(0.0);
if (n <= 0 || inc_x == 0) return(0.0);
FLOAT_V_T vr, v0, v_zero;
unsigned int gvl = 0;