lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
980 stars 388 forks source link

lcmgen wrong datatype when generating C# Code #318

Closed DasCapschen closed 4 years ago

DasCapschen commented 4 years ago

When generating code for C#, lcmgen uses byte instead of sbyte(signed byte) for the int8_t type.

hoxell commented 4 years ago

You're right. Trivial fix, so I recommend you go ahead and create a PR for this 👍 https://github.com/lcm-proj/lcm/blob/3d5e2d275ecaa14106c9f4e9c842bbbce4ab738b/lcmgen/emit_csharp.c#L191