Commit b785f09
committed
fix: ensure consistent enum constant types across platforms
On Windows MSVC, C enums are always `int` (i32), while on other
platforms bindgen may generate them as u32 for non-negative enums.
This causes type mismatches when code using the bindings expects u32.
Add `.default_enum_style(bindgen::EnumVariation::Consts)` and
`.translate_enum_integer_types(true)` to ensure consistent types
regardless of platform.1 parent 72ea8e6 commit b785f09
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
| |||
0 commit comments