Merge branch 'kylemanna' into merge
Conflicts: (manually resolved) capn-malloc.c capn-stream.c capn-test.cpp capn.c capn.h compiler/capnpc-c.c
This commit is contained in:
commit
02268ff818
5 changed files with 23 additions and 19 deletions
|
|
@ -80,7 +80,7 @@ int capn_deflate(struct capn_stream* s) {
|
|||
continue;
|
||||
|
||||
default:
|
||||
if (s->avail_out < 1 + sz)
|
||||
if (s->avail_out < 1U + sz)
|
||||
return CAPN_NEED_MORE;
|
||||
|
||||
*(s->next_out++) = hdr;
|
||||
|
|
@ -167,7 +167,7 @@ int capn_inflate(struct capn_stream* s) {
|
|||
if (hdr & (1 << i))
|
||||
sz++;
|
||||
}
|
||||
if (s->avail_in < 1 + sz)
|
||||
if (s->avail_in < 1U + sz)
|
||||
return CAPN_NEED_MORE;
|
||||
|
||||
s->next_in += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue