Add padding to preserve alignment on 32-bit systems

This commit is contained in:
Steven Dee 2014-02-26 02:03:17 +00:00
parent 823a820e87
commit cb26aeac8d

1
capn.h
View file

@ -89,6 +89,7 @@ struct capn_tree *capn_tree_insert(struct capn_tree *root, struct capn_tree *n);
*/ */
struct capn_segment { struct capn_segment {
struct capn_tree hdr; struct capn_tree hdr;
void *pad1;
struct capn_segment *next; struct capn_segment *next;
struct capn *capn; struct capn *capn;
uint32_t id; uint32_t id;