| 8fd9df95 | 20-Jan-2026 |
James Wright <james@jameswright.xyz> |
fix(cgns): Fix int casting issue with ElementType_t enum
Compiler has the option of what type an enum is represented as. When using a conditional (ternary) operator, the two operands will be cast to
fix(cgns): Fix int casting issue with ElementType_t enum
Compiler has the option of what type an enum is represented as. When using a conditional (ternary) operator, the two operands will be cast to the same type. The ElementType_t (which is strictly positive) can be treated as a uint, which then causes the -1 value to be cast as uint.
show more ...
|