ihedvall / mdflib

Implementation of the ASAM MDF data file.
https://ihedvall.github.io/mdflib/
MIT License
76 stars 32 forks source link

All floats are written as 64bit #72

Closed afestini closed 9 months ago

afestini commented 9 months ago

https://github.com/ihedvall/mdflib/blob/16b8f111ee66388ed741687445674cdefc92a932/mdflib/src/cn4block.cpp#L1012

the code compares the given byte size against bit sizes, resulting in the cases never matching and defaulting to 64bit.

ihedvall commented 9 months ago

Thanks for finding the bug. I will correct the code ASAP.

ihedvall commented 9 months ago

Fixed the bug so 4 and 8 bytes floats are supported. 2 bytes float are supported for reading but not for writing.