opensourcerouting / c-capnproto

C library/compiler for the Cap'n Proto serialization/RPC protocol
MIT License
118 stars 40 forks source link

Support creation of struct lists with size 0 #19

Closed jlferrer closed 7 years ago

jlferrer commented 7 years ago

The case of creating capnp lists of size 0 didn't consider lists of composite elements (structs), which requires the addition of list element information.

This commit removes the case of size 0 when creating the list in order to enable the creation of 0 sized lists of any element type (struct).

eqvinox commented 7 years ago

Looks good, thanks!