Commit 07319722 by Jeffrey A Law Committed by Jeff Law

ios_base.h (_S_ios_fmtflags_end): Initialize correctly targets with 16bit ints.

        * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
        correctly targets with 16bit ints.
        (_S_ios_openmode_end): Similarly.
        (_S_ios_iostate_end): Similarly.
        (_S_ios_Seekdir_end): Similarly.

From-SVN: r39427
parent 4e190cf3
Fri Feb 2 15:47:51 2001 Jeffrey A Law (law@cygnus.com)
* include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
correctly targets with 16bit ints.
(_S_ios_openmode_end): Similarly.
(_S_ios_iostate_end): Similarly.
(_S_ios_Seekdir_end): Similarly.
2001-02-02 Phil Edwards <pme@sources.redhat.com> 2001-02-02 Phil Edwards <pme@sources.redhat.com>
* mkcheck.in: Also limit virtual memory size, for mmap-based mallocs. * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs.
......
...@@ -40,7 +40,7 @@ namespace std { ...@@ -40,7 +40,7 @@ namespace std {
// as permitted (but not required) in the standard, in order to provide // as permitted (but not required) in the standard, in order to provide
// better type safety in iostream calls. A side effect is that // better type safety in iostream calls. A side effect is that
// expressions involving them are no longer compile-time constants. // expressions involving them are no longer compile-time constants.
enum _Ios_Fmtflags { _M_ios_fmtflags_end = 1 << 16 }; enum _Ios_Fmtflags { _M_ios_fmtflags_end = 1L << 16 };
inline _Ios_Fmtflags inline _Ios_Fmtflags
operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
...@@ -71,7 +71,7 @@ namespace std { ...@@ -71,7 +71,7 @@ namespace std {
{ return _Ios_Fmtflags(~static_cast<int>(__a)); } { return _Ios_Fmtflags(~static_cast<int>(__a)); }
enum _Ios_Openmode { _M_ios_openmode_end = 1 << 16 }; enum _Ios_Openmode { _M_ios_openmode_end = 1L << 16 };
inline _Ios_Openmode inline _Ios_Openmode
operator&(_Ios_Openmode __a, _Ios_Openmode __b) operator&(_Ios_Openmode __a, _Ios_Openmode __b)
...@@ -102,7 +102,7 @@ namespace std { ...@@ -102,7 +102,7 @@ namespace std {
{ return _Ios_Openmode(~static_cast<int>(__a)); } { return _Ios_Openmode(~static_cast<int>(__a)); }
enum _Ios_Iostate { _M_ios_iostate_end = 1 << 16 }; enum _Ios_Iostate { _M_ios_iostate_end = 1L << 16 };
inline _Ios_Iostate inline _Ios_Iostate
operator&(_Ios_Iostate __a, _Ios_Iostate __b) operator&(_Ios_Iostate __a, _Ios_Iostate __b)
...@@ -132,7 +132,7 @@ namespace std { ...@@ -132,7 +132,7 @@ namespace std {
operator~(_Ios_Iostate __a) operator~(_Ios_Iostate __a)
{ return _Ios_Iostate(~static_cast<int>(__a)); } { return _Ios_Iostate(~static_cast<int>(__a)); }
enum _Ios_Seekdir { _M_ios_seekdir_end = 1 << 16 }; enum _Ios_Seekdir { _M_ios_seekdir_end = 1L << 16 };
// 27.4.2 Class ios_base // 27.4.2 Class ios_base
class ios_base class ios_base
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment