diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d9288884a66..0ac1a3ab97e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2002-03-11 Benjamin Kosnik + + * include/bits/stl_bvector.h: Fix warning. + 2002-03-11 Richard Henderson * include/bits/stl_bvector.h (_Bit_type): New. Use throughout. diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index f6f85ea9202..6cb6d9caf36 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -392,7 +392,8 @@ template ++_M_finish; } else { - size_type __len = size() ? 2 * size() : _M_word_bit; + size_type __len = size() + ? 2 * size() : static_cast(_M_word_bit); _Bit_type * __q = _M_bit_alloc(__len); iterator __i = copy(begin(), __position, iterator(__q, 0)); *__i++ = __x;