diff --git a/src/API_functions_h2t.c b/src/API_functions_h2t.c index 4f68c5a..26f1711 100644 --- a/src/API_functions_h2t.c +++ b/src/API_functions_h2t.c @@ -117,8 +117,8 @@ int _H2T_Init_mesh_var(va_list argptr) { } int H2T_Set_meshSize(MMG5_pMesh mesh,int np,int nhexa,int nquad,int na) { - int ne,k; - + int ne; + MMG5_int k; ne = 6*nhexa; /* in the output there will be 2*nquad triangles */ diff --git a/src/chk.c b/src/chk.c index a89fae7..3737e1f 100644 --- a/src/chk.c +++ b/src/chk.c @@ -69,14 +69,15 @@ double H2T_quickvol(double *c1,double *c2,double *c3,double *c4) { * */ int H2T_chkorient(MMG5_pMesh mmgMesh,int* hexa,int nhex) { - int nbado,k,i,iadr,ph[8]; + int nbado,k,i,ph[8]; double volref,volhex; + MMG5_int iadr; nbado = 0; volref = 1; for (k=1; k<=nhex; k++) { - iadr = 9*k; + iadr = (MMG5_int)9*k; for(i=0 ; i<8 ; i++) ph[i] = hexa[iadr+i]; diff --git a/src/cut.c b/src/cut.c index 7104b68..84bdb76 100644 --- a/src/cut.c +++ b/src/cut.c @@ -260,11 +260,12 @@ int H2T_chkAdja(MMG5_pMesh mesh,int* listhexa,MMG5_int* adjahex,int nhex) { */ int H2T_cuthex(MMG5_pMesh mesh,pHedge hed,int* listhexa,MMG5_int* adjahex,int nhex) { MMG5_pPoint ppt; - int i,ih,k,nu1,nu2,nu3,nu4,adj,icas0,icasopp,nncut; + int i,ih,nu1,nu2,nu3,nu4,adj,icas0,icasopp,nncut; int *list,*mark,p[8],ipil,icurc,iface,iadr; int iel,ip,ph[8]; double c[3]; int ddebug,ncut; + MMG5_int k; if ( mesh->info.ddebug ) { int count = H2T_chkAdja(mesh,listhexa,adjahex,nhex); diff --git a/src/hashhexa.c b/src/hashhexa.c index 5777e5b..ebfe1ef 100644 --- a/src/hashhexa.c +++ b/src/hashhexa.c @@ -249,8 +249,8 @@ int H2T_hashQuad(MMG5_pMesh mesh,MMG5_Hash *hash) { */ int H2T_hashGetRef(MMG5_pMesh mesh,MMG5_Hash *hash) { MMG5_pTetra pt; - MMG5_int *adja; - int ie,i,nt,ia,ib,ic,k,ref; + MMG5_int *adja, ie; + int i,nt,ia,ib,ic,k,ref; /* Create tetrahedra adjacency */ if( !MMG3D_hashTetra(mesh,0) ) return 0;