stl_bvector.h: Fix warning.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 12 Mar 2002 01:43:44 +0000 (01:43 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 12 Mar 2002 01:43:44 +0000 (01:43 +0000)
2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r50625

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_bvector.h

index d9288884a66ef3766d3e7d06d90209bd28bfec3c..0ac1a3ab97ec7aef03f7beb751d74e16a20ed1c6 100644 (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.
index f6f85ea9202a54d6bee251d91385203bcddc5785..6cb6d9caf36fe3aa72ee107291cecc03b1cf4570 100644 (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;