From e6a581ebe9051c9598f0b9d2cd23cb389b7ce851 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 17 Jul 2019 00:37:51 +0300 Subject: [PATCH] Eliminate 'comparing signed and unsigned values' BCC warning in cordtest * cord/tests/cordtest.c (test_basics): Cast (unsigned char)c to size_t. --- cord/tests/cordtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.7.4