Commit c2b1bb03 by Benjamin Kosnik Committed by Benjamin Kosnik

stl_bvector.h: Fix warning.


2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/stl_bvector.h: Fix warning.

From-SVN: r50625
parent 55a21c32
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment