We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using enums the generator uses the following code for deserialization:
success &= ucdr_deserialize_uint32_t(reader, (uint32_t)&topic->errorId);
which will cast the pointer to the enum to an uint32_t value which does not match the definition of the function:
bool ucdr_deserialize_uint32_t(ucdrBuffer * ub, uint32_t * value);
this will generate compiler warnings like this:
warning: passing argument 2 of 'ucdr_deserialize_uint32_t' makes pointer from integer without a cast [-Wint-conversion]
BTW: The assumption that enum types will be 4 byte integer in memory makes the code implementation specific.
The text was updated successfully, but these errors were encountered:
Acuadros95
No branches or pull requests
Using enums the generator uses the following code for deserialization:
success &= ucdr_deserialize_uint32_t(reader, (uint32_t)&topic->errorId);
which will cast the pointer to the enum to an uint32_t value which does not match the definition of the function:
bool ucdr_deserialize_uint32_t(ucdrBuffer * ub, uint32_t * value);
this will generate compiler warnings like this:
warning: passing argument 2 of 'ucdr_deserialize_uint32_t' makes pointer from integer without a cast [-Wint-conversion]
BTW: The assumption that enum types will be 4 byte integer in memory makes the code implementation specific.
The text was updated successfully, but these errors were encountered: