summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/fstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/src/fstream.cc')
-rw-r--r--libstdc++-v3/src/fstream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/src/fstream.cc b/libstdc++-v3/src/fstream.cc
index 8280a662b70..0f9b2abd2c4 100644
--- a/libstdc++-v3/src/fstream.cc
+++ b/libstdc++-v3/src/fstream.cc
@@ -44,7 +44,7 @@ namespace std
bool __testin = _M_mode & ios_base::in;
bool __testout = _M_mode & ios_base::out;
// Sync with stdio.
- bool __sync = _M_buf_size == 1;
+ bool __sync = _M_buf_size <= 1;
if (__testin)
{
@@ -126,7 +126,7 @@ namespace std
bool __testin = _M_mode & ios_base::in;
bool __testout = _M_mode & ios_base::out;
// Sync with stdio.
- bool __sync = _M_buf_size == 1;
+ bool __sync = _M_buf_size <= 1;
if (__testin)
{