Hyomoto
Member
Using the new ternary operations I get this error during compile under these circumstances:
With the full error being:
error: conditional expression is ambiguous; 'YYRValue' can be converted to 'int' and vice versa
Is this a bug or am I stupid? The common theme is the value being called out is 0 and 1, while if I change the other values to both be non-variables, or I change the values to variables, then it works.
Code:
_rW = ( width != height ) ? ( _width / 2 ) : 0;
Code:
_alpha = ( _i == 0 ) ? 1 : alpha;
error: conditional expression is ambiguous; 'YYRValue' can be converted to 'int' and vice versa
Is this a bug or am I stupid? The common theme is the value being called out is 0 and 1, while if I change the other values to both be non-variables, or I change the values to variables, then it works.