Avoid sign-compare warning

PiperOrigin-RevId: 268132321
This commit is contained in:
Jacques Pienaar 2019-09-09 19:36:02 -07:00 committed by A. Unique TensorFlower
parent 2660623a88
commit af27f4c746
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ TEST(StructsGenTest, ClassofExtraFalse) {
mlir::MLIRContext context;
mlir::DictionaryAttr structAttr = getTestStruct(&context);
auto expectedValues = structAttr.getValue();
ASSERT_EQ(expectedValues.size(), 3);
ASSERT_EQ(expectedValues.size(), 3u);
// Copy the set of named attributes.
llvm::SmallVector<mlir::NamedAttribute, 5> newValues(expectedValues.begin(),
@ -82,7 +82,7 @@ TEST(StructsGenTest, ClassofBadNameFalse) {
mlir::MLIRContext context;
mlir::DictionaryAttr structAttr = getTestStruct(&context);
auto expectedValues = structAttr.getValue();
ASSERT_EQ(expectedValues.size(), 3);
ASSERT_EQ(expectedValues.size(), 3u);
// Create a copy of all but the first NamedAttributes.
llvm::SmallVector<mlir::NamedAttribute, 4> newValues(
@ -103,7 +103,7 @@ TEST(StructsGenTest, ClassofMissingFalse) {
mlir::MLIRContext context;
mlir::DictionaryAttr structAttr = getTestStruct(&context);
auto expectedValues = structAttr.getValue();
ASSERT_EQ(expectedValues.size(), 3);
ASSERT_EQ(expectedValues.size(), 3u);
// Copy a subset of the structures Named Attributes.
llvm::SmallVector<mlir::NamedAttribute, 3> newValues(