Skip to content

Commit 6b407a1

Browse files
authored
fix function typecasts
1 parent aecb4a5 commit 6b407a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lapack/potrf/potrf_L_parallel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
110110
newarg.b = a + (i + bk + i * lda) * COMPSIZE;
111111

112112
gemm_thread_m(mode | BLAS_RSIDE | BLAS_TRANSA_T | BLAS_UPLO,
113-
&newarg, NULL, NULL, (void *)TRSM_RCLN, sa, sb, args -> nthreads);
113+
&newarg, NULL, NULL, (int (*)(void))TRSM_RCLN, sa, sb, args -> nthreads);
114114

115115
newarg.n = n - i - bk;
116116
newarg.k = bk;
@@ -121,7 +121,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
121121
HERK_THREAD_LN(&newarg, NULL, NULL, sa, sb, 0);
122122
#else
123123
syrk_thread(mode | BLAS_TRANSA_N | BLAS_TRANSB_T | BLAS_UPLO,
124-
&newarg, NULL, NULL, (void *)HERK_LN, sa, sb, args -> nthreads);
124+
&newarg, NULL, NULL, (int (*)(void))HERK_LN, sa, sb, args -> nthreads);
125125
#endif
126126
}
127127
}

lapack/potrf/potrf_U_parallel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
110110
newarg.b = a + (i + (i + bk) * lda) * COMPSIZE;
111111

112112
gemm_thread_n(mode | BLAS_TRANSA_T,
113-
&newarg, NULL, NULL, (void *)TRSM_LCUN, sa, sb, args -> nthreads);
113+
&newarg, NULL, NULL, (int (*)(void))TRSM_LCUN, sa, sb, args -> nthreads);
114114

115115
newarg.n = n - i - bk;
116116
newarg.k = bk;
@@ -121,7 +121,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
121121
HERK_THREAD_UC(&newarg, NULL, NULL, sa, sb, 0);
122122
#else
123123
syrk_thread(mode | BLAS_TRANSA_N | BLAS_TRANSB_T,
124-
&newarg, NULL, NULL, (void *)HERK_UC, sa, sb, args -> nthreads);
124+
&newarg, NULL, NULL, (int (*)(void))HERK_UC, sa, sb, args -> nthreads);
125125
#endif
126126
}
127127
}

0 commit comments

Comments
 (0)