mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix [-Werror=sign-compare] in autovector_test
This commit is contained in:
@@ -147,7 +147,8 @@ TEST(AutoVectorTest, Iterators) {
|
||||
}
|
||||
|
||||
pos = vec.begin();
|
||||
for (size_t i = 0; i < vec.size(); i += 2) {
|
||||
typedef autovector<std::string>::difference_type diff_type;
|
||||
for (diff_type i = 0; i < vec.size(); i += 2) {
|
||||
// Cannot use ASSERT_EQ since that macro depends on iostream serialization
|
||||
ASSERT_TRUE(pos + 2 - 2 == pos);
|
||||
pos += 2;
|
||||
|
||||
Reference in New Issue
Block a user