Skip to content

Commit 3c7d0f0

Browse files
committed
Fix macro used in LAPACKE_zgesvdq
This looks like a copy-paste error. gcc emits a warning about it: lapacke_zgesvdq.c: In function 'LAPACKE_zgesvdq': ../include/lapacke.h:50:42: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Signed-off-by: Nikola Forró <[email protected]>
1 parent c3a0b79 commit 3c7d0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LAPACKE/src/lapacke_zgesvdq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ lapack_int LAPACKE_zgesvdq( int matrix_layout, char joba, char jobp,
7171
goto exit_level_0;
7272
}
7373
liwork = iwork_query;
74-
lcwork = LAPACK_C2INT(cwork_query);
74+
lcwork = LAPACK_Z2INT(cwork_query);
7575
lrwork = (lapack_int)rwork_query;
7676
/* Allocate memory for work arrays */
7777
iwork = (lapack_int*)LAPACKE_malloc( sizeof(lapack_int) * liwork );

0 commit comments

Comments
 (0)