commit | b461ea5b18d17f3b0de29e2069252b8d5dc5cac3 | [log] [tgz] |
---|---|---|
author | Jim Schaad <ietf@augustcellars.com> | Sat May 02 16:21:12 2020 -0700 |
committer | Jim Schaad <ietf@augustcellars.com> | Mon May 04 11:19:27 2020 -0700 |
tree | f91ee36cee90d54bad790a317d688e623ccc73ef | |
parent | 5224167a0d0e32bad28c40b3182f5219641aa472 [diff] |
Fix these comile errors
diff --git a/src/cn-print.c b/src/cn-print.c index ca0f065..ce5fb9e 100644 --- a/src/cn-print.c +++ b/src/cn-print.c
@@ -46,7 +46,7 @@ if (ws->rgbOutput == NULL) { return true; } - if ((ws->ib < 0) || (ws->ib + cb > ws->cbLeft)) { + if (ws->ib + cb > ws->cbLeft) { ws->ib = -1; return false; } @@ -92,7 +92,7 @@ bool _print_encoder(const cn_cbor *cb, int depth, void *context) { - int i; + size_t i; char rgchT[256]; int cch; cn_write_state *ws = (cn_write_state *)context;