2005-04-26 Paolo Carlini <pcarlini@suse.de>
commited8713787eb0d64e5f80fbe33a9f48903de50c99
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Apr 2005 09:31:07 +0000 (26 09:31 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Apr 2005 09:31:07 +0000 (26 09:31 +0000)
tree90e9886d6ee581f71733aa43b16029cbbf1fb27a
parentf42a0c29c577bb7a750807d8fd7ffb4f2938d139
2005-04-26  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/21209
* include/bits/locale_facets.tcc (_M_extract_int): Avoid signed
integer overflow, always use a suited unsigned type in the main
parsing loop.
(struct __to_unsigned_type): New.
* testsuite/22_locale/num_get/get/char/16.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98768 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/num_get/get/char/16.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/16.cc [new file with mode: 0644]