Skip to content

Commit

Permalink
Merge pull request #1908 from r-lib/format-string
Browse files Browse the repository at this point in the history
Fix format string
  • Loading branch information
kevinushey authored Nov 29, 2023
2 parents 4b79ede + e7edcad commit 6cb9a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/testthat/testthat.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class r_streambuf : public std::streambuf {
if (n == 1)
Rprintf("%c", *s);
else
Rprintf("%.*s", n, s);
Rprintf("%.*s", static_cast<int>(n), s);

return n;

Expand Down

0 comments on commit 6cb9a69

Please sign in to comment.