We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b45f8c commit a82ce37Copy full SHA for a82ce37
1 file changed
inst/include/Rcpp/iostream/Rstreambuf.h
@@ -67,22 +67,18 @@ namespace Rcpp {
67
}
68
69
template <> inline int Rstreambuf<true>::overflow(int c ) {
70
- if (c == traits_type::eof())
71
- return traits_type::eof();
72
- else
73
- {
+ if (c != traits_type::eof()) {
74
char_type ch = traits_type::to_char_type(c);
75
return xsputn(&ch, 1) == 1 ? c : traits_type::eof();
76
+ return c;
77
78
template <> inline int Rstreambuf<false>::overflow(int c ) {
79
80
81
82
83
84
85
86
87
88
template <> inline int Rstreambuf<true>::sync(){
0 commit comments