Skip to content

Commit

Permalink
Just use int
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Nov 28, 2023
1 parent 4fd89bc commit ed37c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ SEXP r_interpolate_prepare(SEXP r_x, SEXP r_y, SEXP r_type,
ny = 1;
}
if ((size_t)length(r_y) != ny * n) {
Rf_error("Expected 'y' to have total length of %zu (%zu x %zu)",
ny * n, n, ny);
Rf_error("Expected 'y' to have total length of %d (%d x %d)",
(int)(ny * n), (int)n, (int)ny);
}
const bool fail_on_extrapolate = asLogical(r_fail_on_extrapolate);
interpolate_data * data = interpolate_alloc(type_name, n, ny, x, y,
Expand Down

0 comments on commit ed37c4b

Please sign in to comment.