diff options
| -rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
| -rw-r--r-- | libstdc++-v3/include/bits/stl_bvector.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d928888..0ac1a3a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index f6f85ea..6cb6d9c 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -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; |
