Skip to content

Commit 3d27cbd

Browse files
authored
avoid overflow in division
1 parent a39ced0 commit 3d27cbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lapack/getf2/getf2_k.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
9999
jp--;
100100
temp1 = *(b + jp);
101101

102-
if (temp1 != ZERO) {
102+
//if (temp1 != ZERO) {
103+
if (fabs(temp1) > 1.e-305) {
103104
temp1 = dp1 / temp1;
104105

105106
if (jp != j) {

0 commit comments

Comments
 (0)