From: Ivan Maidanski Date: Thu, 27 Oct 2016 21:43:35 +0000 (+0300) Subject: Eliminate 'comparison of signed and unsigned int' GCC warning (test_cpp) X-Git-Tag: v8.0.0~1064 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f23ec4;p=gc Eliminate 'comparison of signed and unsigned int' GCC warning (test_cpp) (fix commit 1868a90) * tests/test_cpp.cc [LINT2] (main): Cast unsigned immediate value to int (before comparison to n local variable). --- diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 17fa41ea..024efae4 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -254,7 +254,7 @@ void* Undisguise( GC_word i ) { if (argc != 2 || (n = atoi(argv[1])) <= 0 # ifdef LINT2 - || n >= (((unsigned)-1) >> 1) - 1 + || n >= (int)(~0U >> 1) - 1 # endif ) { GC_printf("usage: test_cpp number-of-iterations\n"