Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
std::streamsize -> int to fix warnings
  • Loading branch information
bgoodri authored Jan 22, 2024
1 parent bfb0358 commit 277167c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rstan/rstan/inst/include/rstan/io/r_ostream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace rstan {
return 0;
}

virtual std::streamsize xsputn(const char_type* s, std::streamsize n) {
virtual std::streamsize xsputn(const char_type* s, const int n) {
Rprintf("%.*s", n, s);
return n;
}
Expand All @@ -67,7 +67,7 @@ namespace rstan {
return 0;
}

virtual std::streamsize xsputn(const char_type* s, std::streamsize n) {
virtual std::streamsize xsputn(const char_type* s, const int n) {
REprintf("%.*s", n, s);
return n;
}
Expand Down

0 comments on commit 277167c

Please sign in to comment.