projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add casts for signed/unsigned ints
[yaz-moved-to-github.git]
/
test
/
tstodr.c
diff --git
a/test/tstodr.c
b/test/tstodr.c
index
56b7bb0
..
83d2d2c
100644
(file)
--- a/
test/tstodr.c
+++ b/
test/tstodr.c
@@
-105,13
+105,13
@@
void tst_MySequence3(ODR encode, ODR decode)
Yc_MySequence *t;
srand(123);
Yc_MySequence *t;
srand(123);
- for (i = 0; i<1000; i++)
+ for (i = 0; i < 1000; i++)
{
int j;
{
int j;
- for (j = 0; j<sizeof(buf); j++)
+ for (j = 0; j < (int) sizeof(buf); j++)
buf[j] = rand();
buf[j] = rand();
- for (j = 1; j<sizeof(buf); j++)
+ for (j = 1; j < (int) sizeof(buf); j++)
{
odr_setbuf(decode, buf, j, 0);
yc_MySequence(decode, &t, 0, 0);
{
odr_setbuf(decode, buf, j, 0);
yc_MySequence(decode, &t, 0, 0);