wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Fixed bad offset for default values in structs in inline arrays. #109

Closed lundmark closed 5 years ago

lundmark commented 5 years ago

If you had structs in inline arrays with the same member size you would never notice this since it took the current sub member size and multiplied it by its index. The correct way is to use the calculated offset in the struct instead.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 92.249% when pulling 4f887e761821852b4c2d6889d4848b1f5e1862bf on lundmark:master into 6e5c343814988575e2531f3b00e800bda024e343 on wc-duck:master.