Code: Select all
- if (rhs_imag == 0) {
- lhs_real = 1;
+ if (rhs_imag == 0 && rhs_real >= 0) {
+ lhs_real = 1 ? rhs_real == 0 : 0;
What is the purpose of the third expression `0` ?
Is this equivalent to `lhs_real = true` or `lhs = false`, depending on the value of rhs_real ?
If so, why wouldn't it be written as: `lhs_real = (rhs == 0) ;
Is this some fancy way of assigning a boolean or an integer (by some magic) ?
And I thought I knew C ?[/color]