Skip to content

Commit

Permalink
Fix bug: Voronoi C function returns double
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed Oct 10, 2023
1 parent 596e417 commit 67cb704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c_code/interface_triangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ int32_t tri_out_voronoi_npoint(struct ExtTrigen *trigen) {
return trigen->voronoi.numberofpoints;
}

int32_t tri_out_voronoi_point(struct ExtTrigen *trigen, int32_t index, int32_t dim) {
double tri_out_voronoi_point(struct ExtTrigen *trigen, int32_t index, int32_t dim) {
if (trigen == NULL) {
return 0.0;
}
Expand Down
2 changes: 1 addition & 1 deletion c_code/interface_triangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int32_t tri_out_cell_attribute(struct ExtTrigen *trigen, int32_t index);

int32_t tri_out_voronoi_npoint(struct ExtTrigen *trigen);

int32_t tri_out_voronoi_point(struct ExtTrigen *trigen, int32_t index, int32_t dim);
double tri_out_voronoi_point(struct ExtTrigen *trigen, int32_t index, int32_t dim);

int32_t tri_out_voronoi_nedge(struct ExtTrigen *trigen);

Expand Down

0 comments on commit 67cb704

Please sign in to comment.