Changeset 3371


Ignore:
Timestamp:
Jun 28, 2013, 11:50:00 AM (6 years ago)
Author:
cameron
Message:

Fix for scanblock_t = uint64_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_iterator.hpp

    r3334 r3371  
    144144                     int item_pos = pos / (sizeof(scanfield_t) * 8);
    145145                     int bitpos = pos % (sizeof(scanfield_t) * 8);
    146                      remaining._scanfield[item_pos] &= (1 << bitpos) - 1;
     146                     remaining._scanfield[item_pos] &= (((scanblock_t) 1) << bitpos) - 1;
    147147                     item_pos += remaining._scanfield[item_pos] == 0 ? 0 : 1;
    148148                     mask = mask & (((scanblock_t) 1) << item_pos) - 1;
Note: See TracChangeset for help on using the changeset viewer.