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:
Benjamin Kosnik 2002-03-12 01:43:44 +00:00 committed by Benjamin Kosnik
parent 55a21c32e7
commit c2b1bb034b
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;