Index: src/vector.h |
diff --git a/src/vector.h b/src/vector.h |
index eb5808322c731f404c3ff2b2d1cfcc2490b78526..03e5d6cb1ea2f42162b878ead3773c46b68335fb 100644 |
--- a/src/vector.h |
+++ b/src/vector.h |
@@ -35,7 +35,7 @@ class Vector { |
// spanning from and including 'from', to but not including 'to'. |
Vector<T> SubVector(int from, int to) const { |
DCHECK(0 <= from); |
- SLOW_DCHECK(from < to); |
+ SLOW_DCHECK(from <= to); |
titzer
2017/03/03 09:21:44
Any reason this is a SLOW_DCHECK? I wonder if it's
Clemens Hammacher
2017/03/03 09:29:53
I don't know the reason for this. Maybe just to re
jochen (gone - plz use gerrit)
2017/05/03 10:47:22
Note that this change breaks gcc compilation.
(I
Clemens Hammacher
2017/05/03 11:01:55
For reference: You are referring to this bug: http
|
SLOW_DCHECK(static_cast<unsigned>(to) <= static_cast<unsigned>(length_)); |
return Vector<T>(start() + from, to - from); |
} |