Changeset 118649 in webkit
- Timestamp:
- May 27, 2012, 10:48:45 PM (14 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/Vector.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r118643 r118649 1 2012-05-27 Darin Adler <darin@apple.com> 2 3 Fix an incorrect assertion in Vector::remove 4 https://bugs.webkit.org/show_bug.cgi?id=87612 5 6 Reviewed by Dan Bernstein. 7 8 * wtf/Vector.h: There's no good reason to disallow calling remove 9 with a size of 0, even when the position is at the end of the vector, 10 so changed the two-argument Vector::remove assertion to assert that 11 the position is <= size rather than < size. 12 1 13 2012-05-27 Yoshifumi Inoue <yosin@chromium.org> 2 14 -
trunk/Source/WTF/wtf/Vector.h
r111778 r118649 1111 1111 inline void Vector<T, inlineCapacity>::remove(size_t position, size_t length) 1112 1112 { 1113 ASSERT(position < size());1113 ASSERT(position <= size()); 1114 1114 ASSERT(position + length <= size()); 1115 1115 T* beginSpot = begin() + position;
Note:
See TracChangeset
for help on using the changeset viewer.