Eliminate 'comparing signed and unsigned values' BCC warning in cordtest
authorIvan Maidanski <ivmai@mail.ru>
Tue, 16 Jul 2019 21:37:51 +0000 (00:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 16 Jul 2019 21:37:51 +0000 (00:37 +0300)
* cord/tests/cordtest.c (test_basics): Cast (unsigned char)c to size_t.

cord/tests/cordtest.c

index f4868fd..399141e 100644 (file)
@@ -128,7 +128,7 @@ void test_basics(void)
     while(CORD_pos_valid(p)) {
         char c = CORD_pos_fetch(p);
 
-        if ((unsigned char)c != i)
+        if ((size_t)(unsigned char)c != i)
             ABORT("Traversal of function node failed");
         CORD_next(p);
         i++;