]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CMake compatibility: fix error: expected 'float *' but argument is of type 'double *'
authorana <ana@opencascade.com>
Mon, 22 Oct 2012 06:36:04 +0000 (06:36 +0000)
committerana <ana@opencascade.com>
Mon, 22 Oct 2012 06:36:04 +0000 (06:36 +0000)
src/DSC/DSC_User/Datastream/Calcium/calciumf.c

index de55a4e865665698399afab62b98d181e52969df..e01915c73d2a88a7912dbca0523d2ced803b15cd 100644 (file)
@@ -247,7 +247,7 @@ void F_FUNC(cplrd,CPLRD)(long *compo,cal_int *dep,float *ti,float *tf,cal_int *i
             cal_int *max,cal_int *n, double *tab,cal_int *err STR_PLEN(nom))
 {
   char* cnom=fstr1(STR_PTR(nom),STR_LEN(nom));
-  *err=cp_lrd_fort_((void *)*compo,*dep,ti,tf,iter,cnom,*max,n,tab);
+  *err=cp_lrd_fort_((void *)*compo,*dep,ti,tf,iter,cnom,*max,n,(float *)tab);
   free_str1(cnom);
 }
 
@@ -363,7 +363,7 @@ void F_FUNC(cperd,CPERD)(long *compo,cal_int *dep,float *ti,cal_int *iter,STR_PS
   float tti=0.;
   if(*dep == CP_TEMPS)tti=*ti;
   char* cnom=fstr1(STR_PTR(nom),STR_LEN(nom));
-  *err=cp_erd_fort_((void *)*compo,*dep,tti,*iter,cnom,*n,tab);
+  *err=cp_erd_fort_((void *)*compo,*dep,tti,*iter,cnom,*n,(float *)tab);
   free_str1(cnom);
 }