Ticket #9725: db.patch
File db.patch, 996 bytes (added by , 9 years ago) |
---|
-
(a) /usr/pkg/include/boost/dynamic_bitset/dynamic_bitset.hpp.orig vs. (b) dynamic_bitset.hpp
a b 1230 1230 if (i >= num_blocks()) 1231 1231 return npos; // not found 1232 1232 1233 return i * bits_per_block + boost::lowest_bit(m_bits[i]);1233 return i * bits_per_block + static_cast<size_type>(boost::lowest_bit(m_bits[i])); 1234 1234 1235 1235 } 1236 1236 … … 1261 1261 const Block fore = m_bits[blk] & ( ~Block(0) << ind ); 1262 1262 1263 1263 return fore? 1264 blk * bits_per_block + lowest_bit(fore)1264 blk * bits_per_block + static_cast<size_type>(lowest_bit(fore)) 1265 1265 : 1266 1266 m_do_find_from(blk + 1); 1267 1267 … … 1694 1694 dynamic_bitset<Block, Allocator>::calc_num_blocks(size_type num_bits) 1695 1695 { 1696 1696 return num_bits / bits_per_block 1697 + static_cast< int>( num_bits % bits_per_block != 0 );1697 + static_cast<size_type>( num_bits % bits_per_block != 0 ); 1698 1698 } 1699 1699 1700 1700 // gives a reference to the highest block