Multiply by two rather than left shift by one place
fixes GCC ubsan report of "left shift of negative value -2" in the BLAS tests
This commit is contained in:
parent
9eb897cc01
commit
aa3a1e7d8c
|
@ -141,8 +141,8 @@ OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLA
|
||||||
i=0;
|
i=0;
|
||||||
ix=0;
|
ix=0;
|
||||||
iy=0;
|
iy=0;
|
||||||
inc_x <<= 1;
|
inc_x *= 2;
|
||||||
inc_y <<= 1;
|
inc_y *= 2;
|
||||||
while(i < n)
|
while(i < n)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue