> If you really want to do this crazy thing with signed variables, you HAVE > to code it like this: > > c = (a < b) ? (a + t * (b - a)) : (b + (1.0 - t) * (a - b)); There is of course a typo here, Dave meant to say "crazy thing with unsigned variables"