https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f6a4ec80411275be25a8ee0d2a099793c7a1b1fb

commit f6a4ec80411275be25a8ee0d2a099793c7a1b1fb
Author:     Serge Gautherie <[email protected]>
AuthorDate: Tue Apr 17 13:26:33 2018 +0200
Commit:     Mark Jansen <[email protected]>
CommitDate: Tue May 8 21:36:26 2018 +0200

    [APPSHIM_APITEST] Fix a Clang-Cl warning about n
    
    - "warning: comparison of unsigned expression >= 0 is always true 
[-Wtautological-unsigned-zero-compare]"
    
    CORE-14306
---
 modules/rostests/apitests/appshim/dispmode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/rostests/apitests/appshim/dispmode.c 
b/modules/rostests/apitests/appshim/dispmode.c
index 68c3b2f190..1842379b6b 100644
--- a/modules/rostests/apitests/appshim/dispmode.c
+++ b/modules/rostests/apitests/appshim/dispmode.c
@@ -481,7 +481,7 @@ START_TEST(dispmode)
     else
     {
         n = (size_t)atoi(argv[2]);
-        if (n >= 0 && n < _countof(tests))
+        if (n < _countof(tests))
         {
             run_test(n, FALSE);
         }

Reply via email to