Partial revert "all: use unsigned types for more variables that represent length"

This reverts commit 0b6f95294e.

(for merge)
This commit is contained in:
David Lamparter 2016-02-28 12:12:35 +01:00
parent d87beb1a09
commit da77dcc452
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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) {