summaryrefslogtreecommitdiff
path: root/src/util/dense_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/dense_map.h')
-rw-r--r--src/util/dense_map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/dense_map.h b/src/util/dense_map.h
index 222a761c3..b7d690811 100644
--- a/src/util/dense_map.h
+++ b/src/util/dense_map.h
@@ -98,7 +98,7 @@ public:
return false;
}else{
Assert(x < allocated());
- return d_posVector[x] != POSITION_SENTINEL;
+ return d_posVector[x] != +POSITION_SENTINEL;
}
}
@@ -160,7 +160,7 @@ public:
void pop_back() {
Assert(!empty());
Key atBack = back();
- d_posVector[atBack] = POSITION_SENTINEL;
+ d_posVector[atBack] = +POSITION_SENTINEL;
d_image[atBack] = T();
d_list.pop_back();
}
@@ -195,7 +195,7 @@ public:
void increaseSize(Key max){
Assert(max >= allocated());
- d_posVector.resize(max+1, POSITION_SENTINEL);
+ d_posVector.resize(max+1, +POSITION_SENTINEL);
d_image.resize(max+1);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback