projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9ba4b
)
Eliminate 'comparing signed and unsigned values' BCC warning in cordtest
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 16 Jul 2019 21:37:51 +0000
(
00:37
+0300)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/cord/tests/cordtest.c
b/cord/tests/cordtest.c
index
f4868fd
..
399141e
100644
(file)
--- 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++;