Skip to content

Commit 914f719

Browse files
authored
properly cast from zwork_query result to lzwork
1 parent b85e2bd commit 914f719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LAPACKE/src/lapacke_zgedmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ lapack_int LAPACKE_zgedmd( int matrix_layout, char jobs, char jobz, char jobr,
9292
}
9393
lwork = LAPACK_Z2INT( work_query );
9494
liwork = iwork_query;
95-
lzwork = zwork_query;
95+
lzwork = LAPACK_Z2INT( zwork_query );
9696
/* Allocate memory for work arrays */
9797
zwork = (lapack_complex_double*)LAPACKE_malloc( sizeof(lapack_complex_double) * lzwork );
9898
if( zwork == NULL ) {

0 commit comments

Comments
 (0)