translate-c doesn't cast signed array index #4075
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
translate-c
C to Zig source translation feature (@cImport)
Milestone
currently (0.5.0+b3dbdf2ad) this
gets translated to:
which results in the zig compilation error:
I'm not sure exactly what type this should be cast to, but here is one working option, casting to c_uint.
The text was updated successfully, but these errors were encountered: