summaryrefslogtreecommitdiff
path: root/external/bsd/libc++/dist/libcxx/src/strstream.cpp
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-11-11 23:42:23 +0000
committerjoerg <joerg@NetBSD.org>2013-11-11 23:42:23 +0000
commit7b508f5cf1cffaba9056e779bab2a09bf6767655 (patch)
tree1ded8b22c412394ce3b7605b7da7e7d752c5b1e4 /external/bsd/libc++/dist/libcxx/src/strstream.cpp
parentf4c7577e0d6de880acbb5d05bffab23df87c32d5 (diff)
Import libc++ r194207. This brings in various bug fixes, a good chunk of
support for the up-coming C++14 and improved compatibility with various compilers other than Clang.
Diffstat (limited to 'external/bsd/libc++/dist/libcxx/src/strstream.cpp')
-rw-r--r--external/bsd/libc++/dist/libcxx/src/strstream.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/external/bsd/libc++/dist/libcxx/src/strstream.cpp b/external/bsd/libc++/dist/libcxx/src/strstream.cpp
index 08a78a74f6c..c1965ea3762 100644
--- a/external/bsd/libc++/dist/libcxx/src/strstream.cpp
+++ b/external/bsd/libc++/dist/libcxx/src/strstream.cpp
@@ -229,8 +229,8 @@ strstreambuf::pos_type
strstreambuf::seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __which)
{
off_type __p(-1);
- bool pos_in = __which & ios::in;
- bool pos_out = __which & ios::out;
+ bool pos_in = (__which & ios::in) != 0;
+ bool pos_out = (__which & ios::out) != 0;
bool legal = false;
switch (__way)
{
@@ -287,8 +287,8 @@ strstreambuf::pos_type
strstreambuf::seekpos(pos_type __sp, ios_base::openmode __which)
{
off_type __p(-1);
- bool pos_in = __which & ios::in;
- bool pos_out = __which & ios::out;
+ bool pos_in = (__which & ios::in) != 0;
+ bool pos_out = (__which & ios::out) != 0;
if (pos_in || pos_out)
{
if (!((pos_in && gptr() == nullptr) || (pos_out && pptr() == nullptr)))