From: Ivan Maidanski Date: Tue, 16 Jul 2019 21:37:51 +0000 (+0300) Subject: Eliminate 'comparing signed and unsigned values' BCC warning in cordtest X-Git-Tag: upstream/8.0.4~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6a581ebe9051c9598f0b9d2cd23cb389b7ce851;p=platform%2Fupstream%2Flibgc.git Eliminate 'comparing signed and unsigned values' BCC warning in cordtest * cord/tests/cordtest.c (test_basics): Cast (unsigned char)c to size_t. --- diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c index f4868fd..399141e 100644 --- a/cord/tests/cordtest.c +++ b/cord/tests/cordtest.c @@ -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++;