Warning flags for unsigned operations (unsafe)

Robert Dewar dewar@gnat.com
Wed Sep 22 15:12:00 GMT 2004


>   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"



More information about the Gcc mailing list