mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 18:37:36 +08:00
stl_bvector.h: Fix warning.
2002-03-11 Benjamin Kosnik <bkoz@redhat.com> * include/bits/stl_bvector.h: Fix warning. From-SVN: r50625
This commit is contained in:
parent
55a21c32e7
commit
c2b1bb034b
@ -1,3 +1,7 @@
|
||||
2002-03-11 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/bits/stl_bvector.h: Fix warning.
|
||||
|
||||
2002-03-11 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* include/bits/stl_bvector.h (_Bit_type): New. Use throughout.
|
||||
|
@ -392,7 +392,8 @@ template <typename _Alloc>
|
||||
++_M_finish;
|
||||
}
|
||||
else {
|
||||
size_type __len = size() ? 2 * size() : _M_word_bit;
|
||||
size_type __len = size()
|
||||
? 2 * size() : static_cast<size_type>(_M_word_bit);
|
||||
_Bit_type * __q = _M_bit_alloc(__len);
|
||||
iterator __i = copy(begin(), __position, iterator(__q, 0));
|
||||
*__i++ = __x;
|
||||
|
Loading…
Reference in New Issue
Block a user