[llvm] 51e7dc8 - Use explicit unsigned literals to fix mixed sign comparisons

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 15:48:08 PST 2025


Author: David Blaikie
Date: 2025-02-07T23:47:23Z
New Revision: 51e7dc8627e636ff69ee8bcb0bf599b7a3a4957f

URL: https://github.com/llvm/llvm-project/commit/51e7dc8627e636ff69ee8bcb0bf599b7a3a4957f
DIFF: https://github.com/llvm/llvm-project/commit/51e7dc8627e636ff69ee8bcb0bf599b7a3a4957f.diff

LOG: Use explicit unsigned literals to fix mixed sign comparisons

Added: 
    

Modified: 
    llvm/unittests/Object/DXContainerTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Object/DXContainerTest.cpp b/llvm/unittests/Object/DXContainerTest.cpp
index 88a915f560e05f..e7b491103d2d07 100644
--- a/llvm/unittests/Object/DXContainerTest.cpp
+++ b/llvm/unittests/Object/DXContainerTest.cpp
@@ -837,12 +837,12 @@ TEST(RootSignature, ParseRootFlags) {
 
     const auto &RS = C.getRootSignature();
     ASSERT_TRUE(RS.has_value());
-    ASSERT_EQ(RS->getVersion(), 2);
-    ASSERT_EQ(RS->getNumParameters(), 0);
-    ASSERT_EQ(RS->getRootParametersOffset(), 0);
-    ASSERT_EQ(RS->getNumStaticSamplers(), 0);
-    ASSERT_EQ(RS->getStaticSamplersOffset(), 0);
-    ASSERT_EQ(RS->getFlags(), 0x01);
+    ASSERT_EQ(RS->getVersion(), 2u);
+    ASSERT_EQ(RS->getNumParameters(), 0u);
+    ASSERT_EQ(RS->getRootParametersOffset(), 0u);
+    ASSERT_EQ(RS->getNumStaticSamplers(), 0u);
+    ASSERT_EQ(RS->getStaticSamplersOffset(), 0u);
+    ASSERT_EQ(RS->getFlags(), 0x01u);
   }
 
   {


        


More information about the llvm-commits mailing list