diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 11:26:32 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 11:26:32 +1000 |
commit | 5f3cb0bf02ed32976370cf6c7f656d000b4d7694 (patch) | |
tree | 2100c31e7b57d895592904b683954cc3e74838db /impl/IdSet.hpp | |
parent | f09ce60d45d5524e36d07e76814b6e0cbc554288 (diff) |
Re-write heaps of code to work better.
Diffstat (limited to 'impl/IdSet.hpp')
-rw-r--r-- | impl/IdSet.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/impl/IdSet.hpp b/impl/IdSet.hpp index 6f6fd3f..8c64051 100644 --- a/impl/IdSet.hpp +++ b/impl/IdSet.hpp @@ -91,7 +91,7 @@ class IdSet { void absorb(const IdSet& other) { if (_length == other._length) { - for (unsigned int i = 0; i < _length; ++i) { + for (unsigned int i = 0; i < DIV_ROUND_UP(_length, CELL_SIZE); ++i) { _values[i] |= other._values[i]; } } else { |