--- a/mex/comp_dgtreal_ola.c
+++ b/mex/comp_dgtreal_ola.c
@@ -51,9 +51,9 @@
    plhs[0] = ltfatCreateNdimArray(ndim,dims,LTFAT_MX_CLASSID, mxCOMPLEX);
    const LTFAT_REAL * f = (const LTFAT_REAL *) mxGetData(prhs[0]);
    const LTFAT_REAL * g = (const LTFAT_REAL *) mxGetData(prhs[1]);
-   LTFAT_REAL _Complex* out_combined = (LTFAT_REAL _Complex*) mxGetData(plhs[0]);
+   LTFAT_COMPLEX* out_combined = (LTFAT_COMPLEX*) mxGetData(plhs[0]);
 
-   LTFAT_NAME(dgtreal_ola)(f,g,L,gl,W,a,M,bl,(LTFAT_REAL (*)[2]) out_combined);
+   LTFAT_NAME(dgtreal_ola)(f,g,L,gl,W,a,M,bl,out_combined);
    return;
 }
 #endif