2004-08-12 Jan Beulich <jbeulich@novell.com>

* config/locale/generic/ctype_members.cc
	(ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
	initializer for return value, as that is invalid for enumerated	types.
	* config/locale/gnu/ctype_members.cc
	(ctype<wchar_t>::_M_convert_to_wmask): Likewise.

From-SVN: r85862
This commit is contained in:
Jan Beulich 2004-08-12 09:46:39 +00:00 committed by Paolo Carlini
parent e85a53178e
commit 03a2b8100f
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2004-08-12 Jan Beulich <jbeulich@novell.com>
* config/locale/generic/ctype_members.cc
(ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
initializer for return value, as that is invalid for enumerated types.
* config/locale/gnu/ctype_members.cc
(ctype<wchar_t>::_M_convert_to_wmask): Likewise.
2004-08-11 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.

View File

@ -91,7 +91,7 @@ namespace std
__ret = wctype("graph");
break;
default:
__ret = 0;
__ret = __wmask_type();
}
return __ret;
};

View File

@ -95,7 +95,7 @@ namespace std
__ret = __wctype_l("graph", _M_c_locale_ctype);
break;
default:
__ret = 0;
__ret = __wmask_type();
}
return __ret;
}