Skip to content

Commit

Permalink
Cast size_t to uint for printing
Browse files Browse the repository at this point in the history
  • Loading branch information
weshinsley committed Jun 19, 2024
1 parent c617594 commit 06be1d7
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 @@ -76,7 +76,7 @@ void user_check_array_dim(cpp11::sexp x, const char *name,
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)",
i + 1, name, dim_expected[i]);
static_cast<unsigned int>(i + 1), name, dim_expected[i]);
}
}
}
Expand Down

0 comments on commit 06be1d7

Please sign in to comment.