diff --git a/include/main.h b/include/main.h
index 9669b8023c2958f103d10557d2955571a2641bcb..aab2febca030c711dbf6a74f399a4286392207df 100644
--- a/include/main.h
+++ b/include/main.h
@@ -289,7 +289,7 @@ extern int (*CHAMELEON_getrf_nopiv_Tile)( CHAM_desc_t * );
 extern int (*CHAMELEON_getrs_nopiv_Tile)( CHAM_desc_t *, CHAM_desc_t * );
 extern int (*CHAMELEON_build_Tile)( cham_uplo_t, CHAM_desc_t *, void *, void* );
 
-int testFEMBEM_initChameleon( cham_flttype_t stype );
+int testFEMBEM_initChameleon( ScalarType stype );
 int CHAMELEON_gemm_Tile( CHAM_desc_t *descA, CHAM_desc_t *descX, CHAM_desc_t *descY );
 
 int CHAMELEON_generate_matrix( cham_flttype_t flttype, int NB, int PQ[2],
diff --git a/src/chameleon.c b/src/chameleon.c
index 543f8792d6cb4afefb480cbad33b32f1dc108317..c6aa22e9d5e9e7c65cbe9839c1f0d5a215d9fcad 100644
--- a/src/chameleon.c
+++ b/src/chameleon.c
@@ -9,7 +9,7 @@ int (*CHAMELEON_getrf_nopiv_Tile)( CHAM_desc_t * )                       = NULL;
 int (*CHAMELEON_getrs_nopiv_Tile)( CHAM_desc_t *, CHAM_desc_t * )        = NULL; // LU Solve
 
 int
-testFEMBEM_initChameleon( cham_flttype_t stype ) {
+testFEMBEM_initChameleon( ScalarType stype ) {
   int ierr = 0;
 
   /* Set the scalar type and the functions used by CHAMELEON */
diff --git a/src/testCHAMELEON.c b/src/testCHAMELEON.c
index cd0c8588543a048d74b94b29819b123d9ac675b9..1131797969820d594e5db57a6f52303b76c923fa 100644
--- a/src/testCHAMELEON.c
+++ b/src/testCHAMELEON.c
@@ -16,7 +16,7 @@ int testCHAMELEON(double * relative_error) {
 
   /* Cree la Matrice CHAMELEON */
 
-  testFEMBEM_initChameleon( (cham_flttype_t)stype );
+  testFEMBEM_initChameleon( stype );
 
   /* Get the default NB parameter */
   int NB ;
diff --git a/src/testHCHAMELEON.c b/src/testHCHAMELEON.c
index 2baefafc1c14d0302423e0c6cc6e14b041700628..b0f2d8161ed13dc9c78b8ffebfaa7751bd8e9749 100644
--- a/src/testHCHAMELEON.c
+++ b/src/testHCHAMELEON.c
@@ -38,7 +38,7 @@ int testHCHAMELEON(double * relative_error) {
 
   /* Cree la H-Matrice */
 
-  testFEMBEM_initChameleon( (cham_flttype_t)stype );
+  testFEMBEM_initChameleon( stype );
   CHAMELEON_Enable( CHAMELEON_GENERIC ); // Summa is using lacpy that is not supported for hmat yet
 
   /* Get the default NB parameter */