On 1/26/07, Borszczuk <[EMAIL PROTECTED]> wrote: > > Lionscribe wrote: > > > same. The same happens with > > MemHandleNew. > > Pretty unlikely to be MemHandleNew issue. The multiplication > is task of your code (or rather of what compiler has put > there). And sane compiler should use 40000 in the output code > in both cases as it's no point of preserving the multiplication > of two constaints instead of just using its computable at compile > time result.
The compiler has to follow the arithmetic rules of the device when it does constant folding. 20000 fits in a signed 16-bit number and the default int size for Palm OS is 16-bit. 40000 doesn't fit, so it's promoted to signed long. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
