fstream.tcc (basic_filebuf<>::open): Fix & ordering.

* include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
	* include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
	(basic_ostream<>::operator<<(long long)): Same.

From-SVN: r52198
This commit is contained in:
Richard Henderson 2002-04-11 22:42:23 -07:00 committed by Richard Henderson
parent 3d9268b697
commit b773723097
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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;

View File

@ -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);