diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 09:27:18 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 09:27:18 +0000 |
commit | f208e9da948c562121fa462d43ce04d97ede4bba (patch) | |
tree | 6265feb9208c1c22ca1e76da3e1c7e43c1e8f5ae /libstdc++-v3 | |
parent | 5411aa8c3b1a917abb8461aaa0c7dc204dcb6c99 (diff) | |
download | gcc-f208e9da948c562121fa462d43ce04d97ede4bba.tar.gz |
2004-06-28 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
assignments of _M_decimal_point and _M_thousands_sep.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83767 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/config/locale/gnu/monetary_members.cc | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ad9c7f55429..b8788186da2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-06-28 Paolo Carlini <pcarlini@suse.de> + + * config/locale/gnu/monetary_members.cc + (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up + assignments of _M_decimal_point and _M_thousands_sep. + 2004-06-27 Paolo Carlini <pcarlini@suse.de> * docs/html/17_intro/contribute.html: Update some links. diff --git a/libstdc++-v3/config/locale/gnu/monetary_members.cc b/libstdc++-v3/config/locale/gnu/monetary_members.cc index f1cb25fe58b..947876cce45 100644 --- a/libstdc++-v3/config/locale/gnu/monetary_members.cc +++ b/libstdc++-v3/config/locale/gnu/monetary_members.cc @@ -387,12 +387,12 @@ namespace std setlocale(LC_ALL, __name); #endif - union __s_and_w { const char *__s; unsigned int __w; } __u; + union { char *__s; wchar_t __w; } __u; __u.__s = __nl_langinfo_l(_NL_MONETARY_DECIMAL_POINT_WC, __cloc); - _M_data->_M_decimal_point = static_cast<wchar_t>(__u.__w); + _M_data->_M_decimal_point = __u.__w; __u.__s = __nl_langinfo_l(_NL_MONETARY_THOUSANDS_SEP_WC, __cloc); - _M_data->_M_thousands_sep = static_cast<wchar_t>(__u.__w); + _M_data->_M_thousands_sep = __u.__w; _M_data->_M_grouping = __nl_langinfo_l(__MON_GROUPING, __cloc); _M_data->_M_grouping_size = strlen(_M_data->_M_grouping); @@ -529,12 +529,12 @@ namespace std setlocale(LC_ALL, __name); #endif - union __s_and_w { const char *__s; unsigned int __w; } __u; + union { char *__s; wchar_t __w; } __u; __u.__s = __nl_langinfo_l(_NL_MONETARY_DECIMAL_POINT_WC, __cloc); - _M_data->_M_decimal_point = static_cast<wchar_t>(__u.__w); + _M_data->_M_decimal_point = __u.__w; __u.__s = __nl_langinfo_l(_NL_MONETARY_THOUSANDS_SEP_WC, __cloc); - _M_data->_M_thousands_sep = static_cast<wchar_t>(__u.__w); + _M_data->_M_thousands_sep = __u.__w; _M_data->_M_grouping = __nl_langinfo_l(__MON_GROUPING, __cloc); _M_data->_M_grouping_size = strlen(_M_data->_M_grouping); |