From da77dcc4521522ba0ccab849174e0decd1ffea43 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 28 Feb 2016 12:12:35 +0100 Subject: [PATCH] Partial revert "all: use unsigned types for more variables that represent length" This reverts commit 0b6f95294e0339d3d52ef80403728bc755fc99f0. (for merge) --- capn-malloc.c | 2 +- capn-stream.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {