Skip to content

Commit

Permalink
Use %zu instead
Browse files Browse the repository at this point in the history
  • Loading branch information
weshinsley committed Jun 21, 2024
1 parent 06be1d7 commit 416fec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void user_check_array_dim(cpp11::sexp x, const char *name,
cpp11::integers dim = cpp11::as_cpp<cpp11::integers>(x.attr("dim"));
for (size_t i = 0; i < N; ++i) {
if (dim[(int)i] != dim_expected[i]) {
Rf_error("Incorrect size of dimension %d of '%s' (expected %d)",
static_cast<unsigned int>(i + 1), name, dim_expected[i]);
Rf_error("Incorrect size of dimension %zu of '%s' (expected %d)",
i + 1, name, dim_expected[i]);
}
}
}
Expand Down

0 comments on commit 416fec9

Please sign in to comment.