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 pointer in the bindings should not be mutable. In the C function the const applies to all dimensions of the array, and there's no way to legally modify any part of the array. A single dimension array works as expected, so it seems to be just an issue with multidimensional arrays.
The text was updated successfully, but these errors were encountered:
I'd be happy to help resolve this issue, assuming it is indeed a real problem. Pointers/suggestions on where or how to fix this would be appreciated (sorry about the pun 😄).
Hmm, I'd look at similar issues like #1727 and such. e09602b is the fix for that, maybe we're missing a similar check in the code that parses arrays. Though I'd first double-check that that is what the C compiler is doing.
Input C/C++ Header
Bindgen Invocation
Using
bindgen
execute version 0.54.1Actual Results
Expected Results
The pointer in the bindings should not be mutable. In the C function the
const
applies to all dimensions of the array, and there's no way to legally modify any part of the array. A single dimension array works as expected, so it seems to be just an issue with multidimensional arrays.The text was updated successfully, but these errors were encountered: