From 073197227cb998f0506011facad1b20d6e470aa5 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sat, 3 Feb 2001 07:24:06 +0000 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 8 ++++++++ libstdc++-v3/include/bits/ios_base.h | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2ada3b82bb0..6b919d9994a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,11 @@ +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 * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs. diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index 2e31863680b..12177dafe0f 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -40,7 +40,7 @@ namespace std { // as permitted (but not required) in the standard, in order to provide // better type safety in iostream calls. A side effect is that // 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 operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) @@ -71,7 +71,7 @@ namespace std { { return _Ios_Fmtflags(~static_cast(__a)); } - enum _Ios_Openmode { _M_ios_openmode_end = 1 << 16 }; + enum _Ios_Openmode { _M_ios_openmode_end = 1L << 16 }; inline _Ios_Openmode operator&(_Ios_Openmode __a, _Ios_Openmode __b) @@ -102,7 +102,7 @@ namespace std { { return _Ios_Openmode(~static_cast(__a)); } - enum _Ios_Iostate { _M_ios_iostate_end = 1 << 16 }; + enum _Ios_Iostate { _M_ios_iostate_end = 1L << 16 }; inline _Ios_Iostate operator&(_Ios_Iostate __a, _Ios_Iostate __b) @@ -132,7 +132,7 @@ namespace std { operator~(_Ios_Iostate __a) { return _Ios_Iostate(~static_cast(__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 class ios_base