Skip to content

Commit

Permalink
Merge pull request #281 from MmgTools/feature/fix-integer-conversion
Browse files Browse the repository at this point in the history
Fix wrong integer conversion when computing xpmax in norver function
  • Loading branch information
coprigent authored Sep 14, 2024
2 parents 88d9d1e + 53b5af3 commit ad10412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmg3d/analys_3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ int MMG5_norver(MMG5_pMesh mesh) {
}

/** Step 2: Allocate memory to store normals for boundary points */
mesh->xpmax = MG_MAX( (long long)(1.5*mesh->xp),mesh->npmax);
mesh->xpmax = MG_MAX( (MMG5_int)(1.5*mesh->xp),mesh->npmax);

MMG5_ADD_MEM(mesh,(mesh->xpmax+1)*sizeof(MMG5_xPoint),"boundary points",return 0);
MMG5_SAFE_CALLOC(mesh->xpoint,mesh->xpmax+1,MMG5_xPoint,return 0);
Expand Down

0 comments on commit ad10412

Please sign in to comment.