[libcxx-commits] [libcxx] 0c90d5f - [libc++][test] fix C4267 warning in bitset.members\to_ulong.pass.cpp

Igor Zhukov via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 14 08:26:01 PDT 2022


Author: Igor Zhukov
Date: 2022-08-14T22:24:58+07:00
New Revision: 0c90d5f7e967aee8ab6e5e971e25921e631a40ac

URL: https://github.com/llvm/llvm-project/commit/0c90d5f7e967aee8ab6e5e971e25921e631a40ac
DIFF: https://github.com/llvm/llvm-project/commit/0c90d5f7e967aee8ab6e5e971e25921e631a40ac.diff

LOG: [libc++][test] fix C4267 warning in bitset.members\to_ulong.pass.cpp

Reviewed By: philnik

Differential Revision: https://reviews.llvm.org/D131854

Added: 
    

Modified: 
    libcxx/test/std/utilities/template.bitset/bitset.members/to_ulong.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/template.bitset/bitset.members/to_ulong.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.members/to_ulong.pass.cpp
index 4aa90ce119639..17a5e7eb51aa2 100644
--- a/libcxx/test/std/utilities/template.bitset/bitset.members/to_ulong.pass.cpp
+++ b/libcxx/test/std/utilities/template.bitset/bitset.members/to_ulong.pass.cpp
@@ -33,8 +33,8 @@ TEST_CONSTEXPR_CXX23 void test_to_ulong() {
         std::min(max, max-1),
         max
     };
-    for (unsigned long j : tests) {
-         std::bitset<N> v(j);
+    for (std::size_t j : tests) {
+        std::bitset<N> v(j);
         assert(j == v.to_ulong());
     }
 


        


More information about the libcxx-commits mailing list