Skip to content
New issue

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

Generated xxxCdrAux.hpp has data type casting issue for large recursive data structure #278

Open
rookybird opened this issue Dec 14, 2023 · 0 comments

Comments

@rookybird
Copy link

Hi all, I am using fastddsgen v3.1.0. When I compiled the generated xxxCdrAux.hpp, there was an narrowing conversion error "error: narrowing conversion of ‘12144122424’ from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} [-Wnarrowing]".

I used recursive sequence in the idl.

typedef sequence<WaypointNode, 100> SingleLane;
typedef sequence<SingleLane, 100> SingleChannel;
sequence<SingleChannel, 100> route

The structure has to be this big. Any thoughts to fix the error?

I will attach the idl files below.
idl.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant