This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/2997
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] libstdc++/2997
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 31 May 2001 12:08:43 -0700
Yay, a simple one.
2001-05-31 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2997
* src/bitset.cc: Qualify size_t with std::.
Index: src/bitset.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/bitset.cc,v
retrieving revision 1.2
diff -c -p -r1.2 bitset.cc
*** bitset.cc 2000/11/29 01:09:09 1.2
--- bitset.cc 2001/05/31 19:07:50
***************
*** 18,31 ****
// _Base_bitset.
//
! size_t
! std::_Base_bitset<1>::_M_do_find_first(size_t __not_found) const
{
_WordT __thisword = _M_w;
if ( __thisword != static_cast<_WordT>(0) ) {
// find byte within word
! for ( size_t __j = 0; __j < sizeof(_WordT); __j++ ) {
unsigned char __this_byte
= static_cast<unsigned char>(__thisword & (~(unsigned char)0));
if ( __this_byte )
--- 18,31 ----
// _Base_bitset.
//
! std::size_t
! std::_Base_bitset<1>::_M_do_find_first(std::size_t __not_found) const
{
_WordT __thisword = _M_w;
if ( __thisword != static_cast<_WordT>(0) ) {
// find byte within word
! for (std::size_t __j = 0; __j < sizeof(_WordT); __j++ ) {
unsigned char __this_byte
= static_cast<unsigned char>(__thisword & (~(unsigned char)0));
if ( __this_byte )
*************** std::_Base_bitset<1>::_M_do_find_first(s
*** 38,45 ****
return __not_found;
}
! size_t
! std::_Base_bitset<1>::_M_do_find_next(size_t __prev, size_t __not_found) const
{
// make bound inclusive
++__prev;
--- 38,46 ----
return __not_found;
}
! std::size_t
! std::_Base_bitset<1>::_M_do_find_next(std::size_t __prev,
! std::size_t __not_found) const
{
// make bound inclusive
++__prev;
*************** std::_Base_bitset<1>::_M_do_find_next(si
*** 58,64 ****
// find byte within word
// get first byte into place
__thisword >>= _S_whichbyte(__prev) * CHAR_BIT;
! for ( size_t __j = _S_whichbyte(__prev); __j < sizeof(_WordT); __j++ ) {
unsigned char __this_byte
= static_cast<unsigned char>(__thisword & (~(unsigned char)0));
if ( __this_byte )
--- 59,65 ----
// find byte within word
// get first byte into place
__thisword >>= _S_whichbyte(__prev) * CHAR_BIT;
! for ( std::size_t __j = _S_whichbyte(__prev); __j < sizeof(_WordT); __j++ ) {
unsigned char __this_byte
= static_cast<unsigned char>(__thisword & (~(unsigned char)0));
if ( __this_byte )
*************** template unsigned char std::_Bit_count<t
*** 194,197 ****
template unsigned char std::_First_one<false>::_S_first_one[];
template unsigned char std::_First_one<true>::_S_first_one[];
-
--- 195,197 ----