Skip to content

Commit

Permalink
Fix typos in polyhedron.c
Browse files Browse the repository at this point in the history
`dtype` should be `dtime`
`plan_number` should be `plane_number`.
  • Loading branch information
g5t authored Jan 22, 2025
1 parent 0308b6f commit 4c6c2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcstas-comps/share/polyhedron.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ int line_polyhedron_intersect(double line_t, Coords line_p, Coords line_v,
int *plane_number = (int*)malloc(a->nf * sizeof(int));
int *type = (int*)malloc(a->nf * sizeof(int));

if (dtype == NULL || dpoint == NULL || time == NULL || point == NULL || plan_number == NULL || type == NULL) {
if (dtime == NULL || dpoint == NULL || time == NULL || point == NULL || plane_number == NULL || type == NULL) {
// Handle memory allocation failure
fprintf(stderr, "Memory allocation failed in line_polyhedron_intersect\n");
free(dtime);
Expand Down

0 comments on commit 4c6c2a7

Please sign in to comment.