all: use unsigned types for more variables that represent length
resolve build warnings on multiple platforms/toolchains
This commit is contained in:
parent
125c638c11
commit
0b6f95294e
5 changed files with 17 additions and 16 deletions
8
capn.h
8
capn.h
|
|
@ -94,7 +94,7 @@ struct capn_segment {
|
|||
uint32_t id;
|
||||
/* user settable */
|
||||
char *data;
|
||||
int len, cap;
|
||||
unsigned len, cap;
|
||||
void *user;
|
||||
};
|
||||
|
||||
|
|
@ -261,10 +261,10 @@ void capn_reset_copy(struct capn *c);
|
|||
*/
|
||||
struct capn_stream {
|
||||
const uint8_t *next_in;
|
||||
int avail_in;
|
||||
unsigned avail_in;
|
||||
uint8_t *next_out;
|
||||
int avail_out;
|
||||
int zeros, raw;
|
||||
unsigned avail_out;
|
||||
unsigned zeros, raw;
|
||||
};
|
||||
|
||||
#define CAPN_MISALIGNED -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue