summaryrefslogtreecommitdiff
path: root/core/vset.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/vset.h')
-rw-r--r--core/vset.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/vset.h b/core/vset.h
index 7b12ae0b25..67af6c1a4c 100644
--- a/core/vset.h
+++ b/core/vset.h
@@ -46,8 +46,13 @@ class VSet {
int low = 0;
int high = _data.size() - 1;
- int middle;
const T *a = &_data[0];
+ int middle = 0;
+
+#if DEBUG_ENABLED
+ if (low > high)
+ ERR_PRINT("low > high, this may be a bug");
+#endif
while (low <= high) {
middle = (low + high) / 2;