You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the issue with this solution has to be seen in the choice of u8, because the affected C strings are very often used in places, where a *const c_char is expected, but c_char may be of type i8 on some systems and u8 on others.
this behavior enforces a lot of unpleasant and error prone further type casts.
The text was updated successfully, but these errors were encountered:
This could be as easy as changing this line from using u8 to using raw_type(ctx, "c_char"), and addressing the relevant fallout... But I'm not sure what should happen when you have something like:
literal strings in C preprocessor definitions are translated to static character arrays by bindgen
e.g.
becomes on my linux system:
the issue with this solution has to be seen in the choice of
u8
, because the affected C strings are very often used in places, where a*const c_char
is expected, butc_char
may be of typei8
on some systems andu8
on others.this behavior enforces a lot of unpleasant and error prone further type casts.
The text was updated successfully, but these errors were encountered: