??? 08/11/07 17:16 Modified: 08/11/07 19:13 Read: times |
#143111 - Superfluous casts Responding to: ???'s previous message |
C's operand conversion rules make all of those explicit casts totally superfluous. That is a case where "explicitness" is not a good thing.
tmp_float = AxisAngle * 10.0; tmp_float += 460.0; tmp_float *= 3456.0; tmp_float /= 1875.0; tmp_float = 65536.0 - tmp_float; tmp = tmp_float + .5; /* round */ Michal Hupka said:
Keep this on your mind and I think you will have less problem with compiler anomally Edit: There was never a compiler anomaly to begin with. |