Use int64_t for the return value of capn_size(). This makes it consistent with a recent change to capn_write_mem().

This commit is contained in:
Jason Heeris 2021-05-10 22:39:28 +08:00
parent 0650ccbf17
commit 05482f36a8
2 changed files with 3 additions and 3 deletions

View file

@ -282,7 +282,7 @@ int capn_init_mem(struct capn *c, const uint8_t *p, size_t sz, int packed);
* input. A buffer of this size can then be passed to capn_write_mem() without
* fear of truncation (again, only in the unpacked case).
*/
int capn_size(struct capn *c);
int64_t capn_size(struct capn *c);
/* capn_write_(fp|mem) writes segments to the file/memory buffer in
* serialized form and returns the number of bytes written.