Skip to content

Commit

Permalink
Fixed some print statements in C code
Browse files Browse the repository at this point in the history
  • Loading branch information
ndemaio committed May 2, 2024
1 parent d81edfa commit 2e84c44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/src/RcompGeomete.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ double *calculateradill(double *point0, double *voronoiVertices)

Rprintf("num of rows");
snprintf(int2strbuf, int2strbufsize, "%d", row);
Rprintf(int2strbuf);
Rprintf((char *)int2strbuf);

for (j = 0; j < row; j++)
{
Expand Down
2 changes: 1 addition & 1 deletion package/src/Rdelaunayn.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ SEXP C_delaunayn(const SEXP p, const SEXP options, SEXP tmpdir)
{
if (exitcode == 1)
{
error("Qhull returned non-simplicial facets -- try delaunayn with different options. exitcode", exitcode);
error("Qhull returned non-simplicial facets -- try delaunayn with different options. exitcode %d", exitcode);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion package/src/Rvoronoi.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ SEXP C_voronoiR(const SEXP p, const SEXP options, SEXP tmpdir)
{
if (exitcode == 1)
{
error("Qhull returned non-simplicial facets -- try delaunayn with different options. exitcode", exitcode);
error("Qhull returned non-simplicial facets -- try delaunayn with different options. exitcode %d", exitcode);
}
else
{
Expand Down

0 comments on commit 2e84c44

Please sign in to comment.