This commit is contained in:
Hieu Hoang 2015-10-26 12:03:54 +00:00
parent 20e3827ed2
commit 692d4c3f32
3 changed files with 23 additions and 25 deletions

View File

@ -149,14 +149,12 @@ public:
bool origValue = m_bitmap[pos];
if (origValue == value) {
// do nothing
}
else {
} else {
m_bitmap[pos] = value;
UpdateFirstGap(pos, pos, value);
if (value) {
++m_numWordsCovered;
}
else {
} else {
--m_numWordsCovered;
}
}