Skip to content

Commit

Permalink
Merge pull request #143 from mrc-ide/mrc-5482
Browse files Browse the repository at this point in the history
Cast size_t to uint for Rf_error
  • Loading branch information
weshinsley authored Jun 25, 2024
2 parents c617594 + 416fec9 commit 7efb72e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: odin.dust
Title: Compile Odin to Dust
Version: 0.3.10
Version: 0.3.11
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Alex", "Hill", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion inst/support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ 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)",
Rf_error("Incorrect size of dimension %zu of '%s' (expected %d)",
i + 1, name, dim_expected[i]);
}
}
Expand Down

0 comments on commit 7efb72e

Please sign in to comment.