getty-zig / getty

A (de)serialization framework for Zig
https://getty.so
MIT License
189 stars 13 forks source link

ser: Fix struct length when attributes are defined #91

Closed ibokuri closed 1 year ago

ibokuri commented 1 year ago

If an empty attribute list was specified, struct serialization would end up incorrect as the length of the struct would always be 0.