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:
parent
e933510236
commit
376b63fb81
6 changed files with 15 additions and 15 deletions
6
capn.h
6
capn.h
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue