Skip to content

Commit

Permalink
Fix wrong integer conversion when computing xpmax in norver function …
Browse files Browse the repository at this point in the history
…during analysis step.
  • Loading branch information
Algiane committed Sep 13, 2024
1 parent 88d9d1e commit 53b5af3
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 53b5af3

Please sign in to comment.