File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
inst/include/Rcpp/iostream Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -67,22 +67,18 @@ namespace Rcpp {
67
67
}
68
68
69
69
template <> inline int Rstreambuf<true >::overflow(int c ) {
70
- if (c == traits_type::eof ())
71
- return traits_type::eof ();
72
- else
73
- {
70
+ if (c != traits_type::eof ()) {
74
71
char_type ch = traits_type::to_char_type (c);
75
72
return xsputn (&ch, 1 ) == 1 ? c : traits_type::eof ();
76
73
}
74
+ return c;
77
75
}
78
76
template <> inline int Rstreambuf<false >::overflow(int c ) {
79
- if (c == traits_type::eof ())
80
- return traits_type::eof ();
81
- else
82
- {
77
+ if (c != traits_type::eof ()) {
83
78
char_type ch = traits_type::to_char_type (c);
84
79
return xsputn (&ch, 1 ) == 1 ? c : traits_type::eof ();
85
80
}
81
+ return c;
86
82
}
87
83
88
84
template <> inline int Rstreambuf<true >::sync(){
You can’t perform that action at this time.
0 commit comments