diff --git a/capn-malloc.c b/capn-malloc.c index 56c8fdf..811a86a 100644 --- a/capn-malloc.c +++ b/capn-malloc.c @@ -172,7 +172,7 @@ capn_write_mem(struct capn *c, uint8_t *p, size_t sz, int packed) { struct capn_segment *seg; struct capn_ptr root; - unsigned i; + int i; uint32_t headerlen; size_t datasz; uint32_t *header; diff --git a/capn-stream.c b/capn-stream.c index 4bc1355..6d7f397 100644 --- a/capn-stream.c +++ b/capn-stream.c @@ -12,7 +12,7 @@ int capn_deflate(struct capn_stream* s) { } while (s->avail_in) { - unsigned i, sz = 0; + int i, sz = 0; uint8_t hdr = 0; uint8_t *p; @@ -104,7 +104,7 @@ int capn_inflate(struct capn_stream* s) { } while (s->avail_out) { - unsigned i, sz; + int i, sz; uint8_t hdr; if (s->zeros > 0) {