signedness: Fix less obvious issues

* My compilers mark these as errors
* Attempt to be more correct
* Tested on gcc-5.2.0 and clang-3.6.2
This commit is contained in:
Kyle Manna 2015-08-17 18:52:36 -07:00
parent e933510236
commit 376b63fb81
6 changed files with 15 additions and 15 deletions

6
capn.h
View file

@ -94,7 +94,7 @@ struct capn_segment {
uint32_t id;
/* user settable */
char *data;
int len, cap;
size_t len, cap;
void *user;
};
@ -261,9 +261,9 @@ void capn_reset_copy(struct capn *c);
*/
struct capn_stream {
const uint8_t *next_in;
int avail_in;
size_t avail_in;
uint8_t *next_out;
int avail_out;
size_t avail_out;
int zeros, raw;
};