Skip to content

Commit 23f2c4c

Browse files
authored
Merge pull request #3978 from martin-frbg/fix3941
fix division-by-zero guard in zgetf2
2 parents fd0614c + 12aabb9 commit 23f2c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack/getf2/zgetf2_k.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
107107
temp2 = *(b + jp * 2 + 1);
108108

109109
// if ((temp1 != ZERO) || (temp2 != ZERO)) {
110-
if ((fabs(temp1) >= DBL_MIN) && (fabs(temp2) >= DBL_MIN)) {
110+
if ((fabs(temp1) >= DBL_MIN) || (fabs(temp2) >= DBL_MIN)) {
111111

112112
if (jp != j) {
113113
SWAP_K(j + 1, 0, 0, ZERO, ZERO, a + j * 2, lda,

0 commit comments

Comments
 (0)