Commit fb2a30b8 authored by Lev Walkin's avatar Lev Walkin

remove pointer sign warnings

parent 5b63acf7
......@@ -18,7 +18,7 @@ verify(int testNo, T_t *ti) {
er = uper_encode_to_buffer(&asn_DEF_T, ti, buf, sizeof buf);
fprintf(stderr, "%d IN: %d => %zd\n", testNo, ti->present, er.encoded);
assert(er.encoded >= 1 && er.encoded <= 8 * sizeof(buf));
assert(er.encoded >= 1 && er.encoded <= (ssize_t)(8 * sizeof(buf)));
rv = uper_decode(0, &asn_DEF_T, (void *)&to, buf, sizeof buf, 0, 0);
assert(rv.code == RC_OK);
......
......@@ -19,7 +19,7 @@ verify(int testNo, T_t *ti) {
er = uper_encode_to_buffer(&asn_DEF_T, ti, buf, sizeof buf);
fprintf(stderr, "%d IN: %d => %zd\n", testNo, ti->present, er.encoded);
assert(er.encoded >= 1);
assert(er.encoded <= 8 * sizeof(buf));
assert(er.encoded <= (ssize_t)(8 * sizeof(buf)));
rv = uper_decode(0, &asn_DEF_T, (void *)&to, buf, sizeof buf, 0, 0);
assert(rv.code == RC_OK);
......
......@@ -53,7 +53,7 @@ main(int ac, char **av) {
drv = ber_decode(0, &asn_DEF_SeqWithOptional, (void **)&swo,
buf, erv.encoded);
assert(drv.code == RC_OK);
assert(drv.consumed == erv.encoded);
assert((ssize_t)drv.consumed == erv.encoded);
assert(swo->seqOfOpt != 0);
xer_fprint(stderr, &asn_DEF_SeqWithOptional, swo);
......@@ -72,7 +72,7 @@ main(int ac, char **av) {
drv = ber_decode(0, &asn_DEF_SeqWithOptional, (void **)&swo,
buf, erv.encoded);
assert(drv.code == RC_OK);
assert(drv.consumed == erv.encoded);
assert((ssize_t)drv.consumed == erv.encoded);
assert(swo->seqOfOpt == 0);
xer_fprint(stderr, &asn_DEF_SeqWithOptional, swo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment