Skip to content

Commit 433519f

Browse files
authored
Merge pull request #223 from MmgTools/hotfix/int-max-init
Hotfix/int max init
2 parents de3046f + a7755c7 commit 433519f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mmg3d/colver_3d.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ int MMG5_chkcol_bdy(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,int8_t iface,
624624
* shell because some MG_BDY tags may be missings due to the creation
625625
* of an xtetra during a previous collapse */
626626
if ( !(pxt->ftag[i] & MG_BDY) ) {
627-
int16_t tag0,tag1,tag2;
628-
int ref0,ref1,ref2;
627+
int16_t tag0,tag1,tag2;
628+
MMG5_int ref0,ref1,ref2;
629629

630630
tag0 = tag1 = tag2 = 0;
631631
ref0 = ref1 = ref2 = 0;

src/mmg3d/quality_3d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int MMG3D_computePrilen( MMG5_pMesh mesh, MMG5_pSol met, double* avlen,
233233
static double bd[9]= {0.0, 0.3, 0.6, 0.7071, 0.9, 1.3, 1.4142, 2.0, 5.0};
234234

235235
*bd_in = bd;
236-
memset(hl,0,9*sizeof(int));
236+
memset(hl,0,9*sizeof(MMG5_int));
237237
*ned = 0;
238238
*avlen = 0.0;
239239
*lmax = 0.0;

0 commit comments

Comments
 (0)