nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Use U8 as the serialized size of bool #139

Closed bocchino closed 2 years ago

bocchino commented 2 years ago

sizeof(bool) is not defined in C++. See https://stackoverflow.com/questions/4897844/is-sizeofbool-defined-in-the-c-language-standard.

F Prime serializes bool as U8. See https://github.com/nasa/fprime/blob/776af784414b8df7c148845dfca8a1956e5ac4cb/Fw/Types/Serializable.cpp#L210-L225.