Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fix a "comparison between signed and unsigned" problem.

Commit
8cfe821e2b0cd8579e7efb5c881f1a76d6ec24b5
Author
Graham Lee ·
Parents
89d2a3f911cd

Files · Download .tar.gz

Changes

 include/internal/catch_objc.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_objc.hpp b/include/internal/catch_objc.hpp
index 6db1b707..99406233 100644
--- a/include/internal/catch_objc.hpp
+++ b/include/internal/catch_objc.hpp
@@ -129,7 +129,7 @@ namespace Catch {
             {
                 u_int count;
                 Method* methods = class_copyMethodList( cls, &count );
-                for( int m = 0; m < count ; m++ ) {
+                for( u_int m = 0; m < count ; m++ ) {
                     SEL selector = method_getName(methods[m]);
                     std::string methodName = sel_getName(selector);
                     if( Detail::startsWith( methodName, "Catch_TestCase_" ) ) {