> Should the naked constant 10 be treated as signed or unsigned? Short or
> long integer? Those are the silent promotions in the above expression,
> and in the original example.

Ok, what about:

   result = x +
      (unsigned long) ((signed long) (((signed long) (y - z)) * 10L));

which (still!) gives the same result?

Stephen Best
Bitware Australia



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to