summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 05:42:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-12 05:42:23 +0000
commit16e467bded842914c869ba53cdeaa9dc94002ea2 (patch)
tree982e59c23e7bf74eb041871cc4e8d5a4dffe0a27 /libstdc++-v3
parentb70ea76415e6bc158157d2be06c06d893eced4ca (diff)
downloadgcc-16e467bded842914c869ba53cdeaa9dc94002ea2.tar.gz
* include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
* include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same. (basic_ostream<>::operator<<(long long)): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52198 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/bits/fstream.tcc2
-rw-r--r--libstdc++-v3/include/bits/ostream.tcc4
3 files changed, 9 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 05c398401a3..6533d391f62 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,11 @@
2002-04-11 Richard Henderson <rth@redhat.com>
+ * include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
+ * include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
+ (basic_ostream<>::operator<<(long long)): Same.
+
+2002-04-11 Richard Henderson <rth@redhat.com>
+
* config/linker-map.gnu: Add __gxx_personality_sj0.
2002-04-09 Benjamin Kosnik <bkoz@redhat.com>
diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc
index 92a0730d67b..85143235436 100644
--- a/libstdc++-v3/include/bits/fstream.tcc
+++ b/libstdc++-v3/include/bits/fstream.tcc
@@ -165,7 +165,7 @@ namespace std
// For time being, set both (in/out) sets of pointers.
_M_set_indeterminate();
- if (__mode & ios_base::ate
+ if ((__mode & ios_base::ate)
&& this->seekoff(0, ios_base::end, __mode) < 0)
this->close();
__ret = this;
diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc
index 5c4799b9caa..d15b9f2afa3 100644
--- a/libstdc++-v3/include/bits/ostream.tcc
+++ b/libstdc++-v3/include/bits/ostream.tcc
@@ -185,7 +185,7 @@ namespace std
if (_M_check_facet(_M_fnumput))
{
bool __b = false;
- if (__fmt & ios_base::oct || __fmt & ios_base::hex)
+ if ((__fmt & ios_base::oct) || (__fmt & ios_base::hex))
{
unsigned long __l = static_cast<unsigned long>(__n);
__b = _M_fnumput->put(*this, *this, __c, __l).failed();
@@ -248,7 +248,7 @@ namespace std
if (_M_check_facet(_M_fnumput))
{
bool __b = false;
- if (__fmt & ios_base::oct || __fmt & ios_base::hex)
+ if ((__fmt & ios_base::oct) || (__fmt & ios_base::hex))
{
unsigned long long __l;
__l = static_cast<unsigned long long>(__n);