aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-22 21:19:54 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-07-22 21:20:04 -0700
commitfb2d9ddf20998f177ebf404413de4d8d94749a48 (patch)
tree6c5e8d78fa9570104f03328e28c90d391de10685 /src/core/basetypes
parente94b21dfb10d7730699fa0e02ff28da4c6d4694d (diff)
Fixed IndexSet::count() implementation.
Diffstat (limited to 'src/core/basetypes')
-rw-r--r--src/core/basetypes/MCIndexSet.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/basetypes/MCIndexSet.cc b/src/core/basetypes/MCIndexSet.cc
index 514e9d66..cd880fe5 100644
--- a/src/core/basetypes/MCIndexSet.cc
+++ b/src/core/basetypes/MCIndexSet.cc
@@ -70,7 +70,7 @@ unsigned int IndexSet::count()
{
unsigned int total = 0;
for(unsigned int i = 0 ; i < mCount ; i ++) {
- total += mRanges[i].length;
+ total += mRanges[i].length + 1;
}
return total;
}