[libcxxabi] r289365 - Fix signed comparison warning

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 10 21:43:21 PST 2016


Author: ericwf
Date: Sat Dec 10 23:43:20 2016
New Revision: 289365

URL: http://llvm.org/viewvc/llvm-project?rev=289365&view=rev
Log:
Fix signed comparison warning

Modified:
    libcxxabi/trunk/test/uncaught_exceptions.pass.cpp

Modified: libcxxabi/trunk/test/uncaught_exceptions.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/uncaught_exceptions.pass.cpp?rev=289365&r1=289364&r2=289365&view=diff
==============================================================================
--- libcxxabi/trunk/test/uncaught_exceptions.pass.cpp (original)
+++ libcxxabi/trunk/test/uncaught_exceptions.pass.cpp Sat Dec 10 23:43:20 2016
@@ -23,9 +23,9 @@ struct A {
     };
 
 struct B {
-    B(int cnt) : data_(cnt) {}
+    B(unsigned cnt) : data_(cnt) {}
     ~B() { assert( data_ == __cxxabiv1::__cxa_uncaught_exceptions()); }
-    int data_;
+    unsigned data_;
     };
 
 int main ()




More information about the cfe-commits mailing list