Skip to content

Commit a21d40e

Browse files
dwblaikieIcohedron
authored andcommitted
Use explicit unsigned literals to fix mixed sign comparisons
1 parent ac96dc8 commit a21d40e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/unittests/Object/DXContainerTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -837,12 +837,12 @@ TEST(RootSignature, ParseRootFlags) {
837837

838838
const auto &RS = C.getRootSignature();
839839
ASSERT_TRUE(RS.has_value());
840-
ASSERT_EQ(RS->getVersion(), 2);
841-
ASSERT_EQ(RS->getNumParameters(), 0);
842-
ASSERT_EQ(RS->getRootParametersOffset(), 0);
843-
ASSERT_EQ(RS->getNumStaticSamplers(), 0);
844-
ASSERT_EQ(RS->getStaticSamplersOffset(), 0);
845-
ASSERT_EQ(RS->getFlags(), 0x01);
840+
ASSERT_EQ(RS->getVersion(), 2u);
841+
ASSERT_EQ(RS->getNumParameters(), 0u);
842+
ASSERT_EQ(RS->getRootParametersOffset(), 0u);
843+
ASSERT_EQ(RS->getNumStaticSamplers(), 0u);
844+
ASSERT_EQ(RS->getStaticSamplersOffset(), 0u);
845+
ASSERT_EQ(RS->getFlags(), 0x01u);
846846
}
847847

848848
{

0 commit comments

Comments
 (0)