diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2019-07-17 00:37:51 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2019-07-17 00:37:51 +0300 |
commit | e6a581ebe9051c9598f0b9d2cd23cb389b7ce851 (patch) | |
tree | f3f7348426f03089324c59f7773817e6213f1fd5 /cord | |
parent | bc9ba4b8c06179c80c6399faa146291bfe6e6e97 (diff) | |
download | bdwgc-e6a581ebe9051c9598f0b9d2cd23cb389b7ce851.tar.gz |
Eliminate 'comparing signed and unsigned values' BCC warning in cordtest
* cord/tests/cordtest.c (test_basics): Cast (unsigned char)c to size_t.
Diffstat (limited to 'cord')
-rw-r--r-- | cord/tests/cordtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cord/tests/cordtest.c b/cord/tests/cordtest.c index f4868fd5..399141e4 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++; |