gtest fails to build due to integer type mismatch in WTF::insertIntoBoundedVector()
[WebKit-https.git] / Source / WTF / wtf / StdLibExtras.h
index a4cc7887bc0851841333e2ce18b2fbab95c73b0f..a3c6f4fb8a30bc1499df43c1f64a5b7416943a0b 100644 (file)
@@ -263,7 +263,7 @@ inline ArrayElementType* approximateBinarySearch(const ArrayType& array, size_t
 template<typename VectorType, typename ElementType>
 inline void insertIntoBoundedVector(VectorType& vector, size_t size, const ElementType& element, size_t index)
 {
-    for (unsigned i = size; i-- > index + 1;)
+    for (size_t i = size; i-- > index + 1;)
         vector[i] = vector[i - 1];
     vector[index] = element;
 }